[FIX] various test. Readd odoorpc in the requilrements.txt file to generate_module_analysis and add comments in the file

This commit is contained in:
Sylvain LE GAL 2022-06-29 11:25:29 +02:00
parent b22d9b5ad4
commit 8035ba2871
3 changed files with 14 additions and 9 deletions

View File

@ -1,5 +1,12 @@
{%- for python_librairy in python_libraries -%}
{{ python_librairy }}
{% endfor %}
# Mandatory library used in all odoo-openupgrade-wizard
openupgradelib
# Library used to run 'post-migration.py' scripts
click-odoo
# Library used to run generate-module-analysis command
odoorpc

View File

@ -29,7 +29,7 @@ def test_cli_upgrade():
]
)
# Ensure that 'base' module is installed at 13.0
# Ensure that 'base' module is installed at 14.0
request = (
"SELECT latest_version"
" FROM ir_module_module"
@ -38,7 +38,7 @@ def test_cli_upgrade():
)
latest_version = execute_sql_request(ctx, request, database=db_name)
assert latest_version[0][0].startswith("13.")
assert latest_version[0][0].startswith("14.")
cli_runner_invoke(
[
@ -50,7 +50,7 @@ def test_cli_upgrade():
]
)
# Ensure that 'base' module is installed at 14.0
# Ensure that 'base' module is installed at 15.0
request = (
"SELECT latest_version"
" FROM ir_module_module"
@ -59,4 +59,4 @@ def test_cli_upgrade():
)
latest_version = execute_sql_request(ctx, request, database=db_name)
assert latest_version[0][0].startswith("14.")
assert latest_version[0][0].startswith("15.")

View File

@ -14,16 +14,14 @@ class TestCliEstimateWorkload(unittest.TestCase):
"estimate-workload",
"--extra-modules="
# Done Module
"account"
"base"
# Deleted module (because merged)
",account_analytic_default"
# Deleted module (because renamed)
",account_facturx"
# Deleted module (because lost merge)
",base_gengo"
",account_edi_extended"
# Some modules that are not ported (for the time being)
",l10n_be_invoice_bba,l10n_ch_qriban,l10n_latam_base"
# OCA Portted Modules
# OCA Ported Modules
",web_responsive"
# OCA Unported modules
",web_boolean_button"