Skip to content

Commit df927ed

Browse files
authored
Merge pull request jazzband#61 from ShipChain/fix-sqlite-unit-tests
Fix unit tests: Use TransactionTestCase instead of TestCase as base for MigrationTestCase
2 parents 674570e + af44edb commit df927ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from django.db import connection
66
from django.db.migrations.executor import MigrationExecutor
7-
from django.test import TestCase
7+
from django.test import TestCase, TransactionTestCase
88
from rest_framework.test import APIClient
99
from rest_framework_simplejwt.compat import reverse
1010
from rest_framework_simplejwt.settings import api_settings
@@ -82,7 +82,7 @@ def override_api_settings(**settings):
8282
pass
8383

8484

85-
class MigrationTestCase(TestCase):
85+
class MigrationTestCase(TransactionTestCase):
8686
migrate_from = None
8787
migrate_to = None
8888

0 commit comments

Comments
 (0)