We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e10dc9 commit 88b370fCopy full SHA for 88b370f
django_cron/tests.py
@@ -3,7 +3,8 @@
3
from datetime import timedelta
4
5
from django import db
6
-from django.test import TestCase as BaseTestCase
+
7
+from django.test import TransactionTestCase
8
from django.core.management import call_command
9
from django.test.utils import override_settings
10
from django.test.client import Client
@@ -33,7 +34,7 @@ def str_content(self):
33
34
return self._str_cache
35
36
-class TestCase(BaseTestCase):
37
+class TestCase(TransactionTestCase):
38
39
success_cron = 'test_crons.TestSucessCronJob'
40
error_cron = 'test_crons.TestErrorCronJob'
0 commit comments