Commit Graph

6 Commits

Author SHA1 Message Date
Rémy Taymans
a0307847b9 Allow mocking the ODOO_RPC_URL for testing
Depending of the test environment, the url of the odoo container may
change.

Using pytest in a local shell, Odoo will be available at 0.0.0.0
address.

Using pytest in a docker-in-docker environment, the url for the Odoo
container will be exposed on a different address depending on the
configuration of the docker-in-docker environment.

The mock check whether the user has configured a différent URL for the
Odoo RPC calls, and set it accordingly using mock feature.

In the gitlab-ci, the ODOO_RPC_URL should be used to set the correct
address for the RPC calls.
2023-11-09 16:21:20 +01:00
Sylvain LE GAL
842e2ca389 various 2022-06-29 17:45:21 +02:00
Sylvain LE GAL
1261dfaa2f [REF] Add logger in test 2022-06-29 17:37:08 +02:00
Sylvain LE GAL
b37bfa8e31 [REF] create tools & cli folders 2022-06-27 01:57:31 +02:00
Sylvain LE GAL
f895b7d05a [REF] move all templates present in python file into a 'templates' subfolder 2022-06-27 00:34:39 +02:00
Sylvain LE GAL
ecd03ba392 [REF][WIP] remove xml_rpc connexion to make CI green, and replace by click_odoo script 2022-05-31 16:40:03 +02:00