Skip to content

Commit 9fd126b

Browse files
Xavier-DoKangOl
authored andcommitted
[IMP] tests: avoid duplicate tests
Linked to odoo/odoo#148660 In the corresponding community pr, a test is not executed twice when importing a testClass, a common mistake when writing tests. Upgrade tests were relying on this side effect to run tests. A flag is added on the class to enable this behavior in this case only. closes #35 Signed-off-by: Christophe Simonis (chs) <[email protected]>
1 parent b5688a9 commit 9fd126b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/testing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ class UpgradeCommon(BaseCase):
9595

9696
change_version = (None, None)
9797
_abstract = True
98+
allow_inherited_tests_method = True
9899

99100
@property
100101
def key(self):

0 commit comments

Comments
 (0)