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 1
1
from django .core .exceptions import ImproperlyConfigured
2
2
from django .db import connection
3
3
from django .db .backends .signals import connection_created
4
- from django .test import SimpleTestCase , TestCase
4
+ from django .test import SimpleTestCase , TransactionTestCase
5
5
6
6
from django_mongodb_backend .base import DatabaseWrapper
7
7
@@ -15,7 +15,9 @@ def test_database_name_empty(self):
15
15
DatabaseWrapper (settings ).get_connection_params ()
16
16
17
17
18
- class DatabaseWrapperConnectionTests (TestCase ):
18
+ class DatabaseWrapperConnectionTests (TransactionTestCase ):
19
+ available_apps = ["backend_" ]
20
+
19
21
def test_set_autocommit (self ):
20
22
self .assertIs (connection .get_autocommit (), True )
21
23
connection .set_autocommit (False )
You can’t perform that action at this time.
0 commit comments