Updated base test case classes

This commit is contained in:
Antoine Nguyen
2025-09-05 14:11:55 +02:00
parent c766a390cc
commit 142e384b18
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -195,6 +195,8 @@ class SimpleModoTestCase(ParametersMixin, TestCase):
class ModoTestCase(ParametersMixin, TestCase):
"""All test cases must inherit from this one."""
databases = "__all__"
@classmethod
def setUpTestData(cls): # noqa
"""Create a default user."""
+2
View File
@@ -41,6 +41,8 @@ class PolicyDaemonTestCase(RedisTestCaseMixin, ParametersMixin, TransactionTestC
A redis instance is required to run those tests.
"""
databases = "__all__"
def setUp(self):
super().setUp()
call_command("load_initial_data")