Skip to content

Commit

Permalink
use TransactionTestCase in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maciej-jaworski committed Dec 9, 2015
1 parent 0e10dc9 commit 88b370f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions django_cron/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
from datetime import timedelta

from django import db
from django.test import TestCase as BaseTestCase

from django.test import TransactionTestCase
from django.core.management import call_command
from django.test.utils import override_settings
from django.test.client import Client
Expand Down Expand Up @@ -33,7 +34,7 @@ def str_content(self):
return self._str_cache


class TestCase(BaseTestCase):
class TestCase(TransactionTestCase):

success_cron = 'test_crons.TestSucessCronJob'
error_cron = 'test_crons.TestErrorCronJob'
Expand Down

0 comments on commit 88b370f

Please sign in to comment.