Skip to content

Commit 000f2cf

Browse files
committed
fix backend_ tests
1 parent e32707a commit 000f2cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/backend_/test_base.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from django.core.exceptions import ImproperlyConfigured
22
from django.db import connection
33
from django.db.backends.signals import connection_created
4-
from django.test import SimpleTestCase, TestCase
4+
from django.test import SimpleTestCase, TransactionTestCase
55

66
from django_mongodb_backend.base import DatabaseWrapper
77

@@ -15,7 +15,9 @@ def test_database_name_empty(self):
1515
DatabaseWrapper(settings).get_connection_params()
1616

1717

18-
class DatabaseWrapperConnectionTests(TestCase):
18+
class DatabaseWrapperConnectionTests(TransactionTestCase):
19+
available_apps = ["backend_"]
20+
1921
def test_set_autocommit(self):
2022
self.assertIs(connection.get_autocommit(), True)
2123
connection.set_autocommit(False)

0 commit comments

Comments
 (0)