odoo-openupgrade-wizard/tests
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
..
data [FIX] config: indentation 2023-03-17 00:16:00 +01:00
__init__.py Allow mocking the ODOO_RPC_URL for testing 2023-11-09 16:21:20 +01:00
cli_01_init_test.py [FIX] CI 2022-07-11 15:50:41 +02:00
cli_02_get_code_test.py various 2022-06-29 17:45:21 +02:00
cli_03_docker_build_test.py [IMP] prune postgres container 2022-07-11 16:46:08 +02:00
cli_04_run_test.py various 2022-06-29 17:45:21 +02:00
cli_05_execute_script_python_test.py various 2022-06-29 17:45:21 +02:00
cli_06_execute_script_sql_test.py [FIX] CI 2022-07-11 16:08:52 +02:00
cli_07_upgrade_test.py various 2022-06-29 17:45:21 +02:00
cli_08_estimate_workload_test.py various 2022-06-29 17:45:21 +02:00
cli_20_install_from_csv_test.py Allow mocking the ODOO_RPC_URL for testing 2023-11-09 16:21:20 +01:00
cli_21_generate_module_analysis_test.py Allow mocking the ODOO_RPC_URL for testing 2023-11-09 16:21:20 +01:00
cli_22_dumpdb_test.py Allow mocking the ODOO_RPC_URL for testing 2023-11-09 16:21:20 +01:00
cli_30_psql_test.py [ADD] psql command 2023-05-09 21:34:17 +02:00
cli_31_copydb_test.py Allow mocking the ODOO_RPC_URL for testing 2023-11-09 16:21:20 +01:00