-
- Downloads
[FIX] tests: check test tags *_install
Making a test post_install using @tagged should always remove the
at_install tag.
The main reason for that is that runbot split config select if an
at_install or post_install tests should be executed is using negation:
`--test-tags -post_install`. The reason for that is that giving a positive tag will
replace the "standard" tag and non standard tag could be executed if
giving `--test-tags at_install` (without negation)
Since runbot tests in parallel builds, one of them using
`--test-tags -post_install` and the other `--test-tags -at_install`,
a test that is both post install and at install wont be executed at all.
Also, a tests with both tags will be executed twice
in a normal flow, usually not intended.
The correct way to make a test post_install is to use
@tagged('post_install', '-at_install')
closes odoo/odoo#118042
Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
Showing
- addons/hr_org_chart/tests/test_employee_deletion.py 1 addition, 1 deletionaddons/hr_org_chart/tests/test_employee_deletion.py
- addons/sms/tests/test_sms_template.py 1 addition, 1 deletionaddons/sms/tests/test_sms_template.py
- addons/survey/tests/test_survey_security.py 1 addition, 1 deletionaddons/survey/tests/test_survey_security.py
- odoo/addons/base/tests/test_tests_tags.py 4 additions, 4 deletionsodoo/addons/base/tests/test_tests_tags.py
- odoo/tests/common.py 4 additions, 0 deletionsodoo/tests/common.py