[FIX] tests: test support for modules without `__init__.py`
Now that a test exists to enforce `__init__.py` in odoo module, we must ensure that we keep the feature. For that reason, a white-list system is added in `test_dunderinit` and a test is added in order to be sure that a module without `__init__.py` can be exists. This this is made of a fake module `test_data_module` without `__init__.py` and a test module which ensure the fake module was installed. closes odoo/odoo#66778 X-original-commit: 506755ef Related: odoo/enterprise#16653 Signed-off-by:Christophe Monniez (moc) <moc@odoo.com>
Showing
- odoo/addons/test_data_module/__manifest__.py 7 additions, 0 deletionsodoo/addons/test_data_module/__manifest__.py
- odoo/addons/test_data_module_install/__init__.py 0 additions, 0 deletionsodoo/addons/test_data_module_install/__init__.py
- odoo/addons/test_data_module_install/__manifest__.py 7 additions, 0 deletionsodoo/addons/test_data_module_install/__manifest__.py
- odoo/addons/test_data_module_install/tests/__init__.py 1 addition, 0 deletionsodoo/addons/test_data_module_install/tests/__init__.py
- odoo/addons/test_data_module_install/tests/test_data_module_installed.py 13 additions, 0 deletions...t_data_module_install/tests/test_data_module_installed.py
- odoo/addons/test_lint/tests/test_dunderinit.py 3 additions, 1 deletionodoo/addons/test_lint/tests/test_dunderinit.py
odoo/addons/test_data_module/__manifest__.py
0 → 100644
Please register or sign in to comment