File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11from django .core .exceptions import ImproperlyConfigured
22from django .db import connection
33from django .db .backends .signals import connection_created
4- from django .test import SimpleTestCase , TestCase
4+ from django .test import SimpleTestCase , TransactionTestCase
55
66from 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 )
You can’t perform that action at this time.
0 commit comments