@@ -72,7 +72,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
7272 # Connection creation doesn't follow the usual Django API.
7373 "backends.tests.ThreadTests.test_pass_connection_between_threads" ,
7474 "backends.tests.ThreadTests.test_default_connection_thread_local" ,
75- "test_utils.tests.DisallowedDatabaseQueriesTests.test_disallowed_thread_database_connection" ,
7675 # Object of type ObjectId is not JSON serializable.
7776 "auth_tests.test_views.LoginTest.test_login_session_without_hash_session_key" ,
7877 # GenericRelation.value_to_string() assumes integer pk.
@@ -544,6 +543,19 @@ def django_test_expected_failures(self):
544543 "custom_lookups.tests.LookupTests.test_div3_extract" ,
545544 "custom_lookups.tests.SubqueryTransformTests.test_subquery_usage" ,
546545 },
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+ },
547559 }
548560
549561 @cached_property
0 commit comments