mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Updated base test case classes
This commit is contained in:
@@ -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."""
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user