@@ -72,7 +72,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
72
72
# Connection creation doesn't follow the usual Django API.
73
73
"backends.tests.ThreadTests.test_pass_connection_between_threads" ,
74
74
"backends.tests.ThreadTests.test_default_connection_thread_local" ,
75
- "test_utils.tests.DisallowedDatabaseQueriesTests.test_disallowed_thread_database_connection" ,
76
75
# Object of type ObjectId is not JSON serializable.
77
76
"auth_tests.test_views.LoginTest.test_login_session_without_hash_session_key" ,
78
77
# GenericRelation.value_to_string() assumes integer pk.
@@ -544,6 +543,19 @@ def django_test_expected_failures(self):
544
543
"custom_lookups.tests.LookupTests.test_div3_extract" ,
545
544
"custom_lookups.tests.SubqueryTransformTests.test_subquery_usage" ,
546
545
},
546
+ "connection.close() does not close the connection." : {
547
+ "servers.test_liveserverthread.LiveServerThreadTest.test_closes_connections" ,
548
+ "servers.tests.LiveServerTestCloseConnectionTest.test_closes_connections" ,
549
+ },
550
+ "Disallowed query protection doesn't work on MongoDB." : {
551
+ # Because this backend doesn't use cursor(), chunked_cursor(), etc.
552
+ # https://github.com/django/django/blob/045110ff3089aefd9c3e65c707df465bacfed986/django/test/testcases.py#L195-L206
553
+ "test_utils.test_testcase.TestTestCase.test_disallowed_database_queries" ,
554
+ "test_utils.test_transactiontestcase.DisallowedDatabaseQueriesTests.test_disallowed_database_queries" ,
555
+ "test_utils.tests.DisallowedDatabaseQueriesTests.test_disallowed_database_chunked_cursor_queries" ,
556
+ "test_utils.tests.DisallowedDatabaseQueriesTests.test_disallowed_database_queries" ,
557
+ "test_utils.tests.DisallowedDatabaseQueriesTests.test_disallowed_thread_database_connection" ,
558
+ },
547
559
}
548
560
549
561
@cached_property
0 commit comments