diff --git a/DEVELOP.md b/DEVELOP.md index 321e11d..a1eed87 100644 --- a/DEVELOP.md +++ b/DEVELOP.md @@ -53,6 +53,17 @@ This will run tests only for the current ``python3.X`` version. ``` poetry run pytest --cov odoo_openupgrade_wizard --verbosity=2 --exitfirst ``` + +Debug Test +``` +poetry run pytest --verbosity=2 --exitfirst --cov odoo_openupgrade_wizard\ + tests/cli_01_init_test.py\ + tests/cli_02_get_code_test.py\ + tests/cli_03_docker_build_test.py\ + tests/cli_04_run_test.py\ + tests/cli_06_execute_script_sql_test.py +``` + ## Via Tox This will run tests for all the python versions put in the ``tox.ini`` folder. diff --git a/odoo_openupgrade_wizard/tools_postgres.py b/odoo_openupgrade_wizard/tools_postgres.py index 79b1dcc..83df631 100644 --- a/odoo_openupgrade_wizard/tools_postgres.py +++ b/odoo_openupgrade_wizard/tools_postgres.py @@ -41,7 +41,7 @@ def get_postgres_container(ctx): # Postgres container doesn't seems available immediately. # check in odoo container, i remember that there is # some script to do the job - time.sleep(3) + time.sleep(5) return container