Skip to content

Commit a960ff2

Browse files
detrouxdevxlu-odoo
authored andcommitted
[FIX] test_themes: fix test_01_theme_upgrade_post_copy
Commit [1] introduced a new test that uninstalls theme_buzzy. This leads to the whole module being uninstalled because this module has all themes as dependencies. To fix this, we just run the test as the last test, ensuring the module is still installed for other tests. Ideally, tests would be independent from one another, but for now, the order matters. [1]: odoo@4cdd1db closes odoo#782 X-original-commit: 45e9374 Signed-off-by: Soukéina Bojabza (sobo) <[email protected]>
1 parent 09949ef commit a960ff2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test_themes/tests/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# -*- coding: utf-8 -*-
22
# Part of Odoo. See LICENSE file for full copyright and licensing details.
3+
# The order of these tests is important, as the last one will uninstall this
4+
# module. Ideally, the tests would be independent from one another but for now,
5+
# ensure this order.
36

47
from . import test_crawl
58
from . import test_new_page_templates
6-
from . import test_theme_standalone
79
from . import test_theme_upgrade
10+
# This test should be last.
11+
from . import test_theme_standalone

0 commit comments

Comments
 (0)