Skip to content

Commit 76691d9

Browse files
committed
fix test due to behavior change on main
1 parent c892019 commit 76691d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simple_history/registry_tests/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from django.apps import apps
77
from django.contrib.auth import get_user_model
88
from django.core import management
9-
from django.test import TestCase, override_settings
9+
from django.test import TestCase, TransactionTestCase, override_settings
1010

1111
from simple_history import exceptions, register
1212

@@ -215,7 +215,7 @@ def test_custom_attr(self):
215215

216216

217217
@override_settings(MIGRATION_MODULES={})
218-
class TestMigrate(TestCase):
218+
class TestMigrate(TransactionTestCase):
219219
def test_makemigration_command(self):
220220
management.call_command(
221221
"makemigrations", "migration_test_app", stdout=StringIO()

0 commit comments

Comments
 (0)