Commit Graph

4 Commits

Author SHA1 Message Date
Ahmet Yiğit Budak
c08accffac [IMP] Improve test checking database exist 2024-10-03 11:55:52 +00:00
Sylvain LE GAL
e124f3d27f [REF] factorize code : allways set --log-level=DEBUG in test framework 2024-03-22 23:49:52 +01:00
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
Rémy Taymans
f130ecf078 [ADD] dumpdb: tests 2023-07-12 08:35:20 +02:00