mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Used DatabaseFeatures.django_test_skips to skip AssertNumQueriesUponConnectionTests tests.
This commit is contained in:
		| @@ -109,6 +109,11 @@ class DatabaseFeatures(BaseDatabaseFeatures): | |||||||
|                         "servers.tests.LiveServerTestCloseConnectionTest." |                         "servers.tests.LiveServerTestCloseConnectionTest." | ||||||
|                         "test_closes_connections", |                         "test_closes_connections", | ||||||
|                     }, |                     }, | ||||||
|  |                     "For SQLite in-memory tests, closing the connection destroys" | ||||||
|  |                     "the database.": { | ||||||
|  |                         "test_utils.tests.AssertNumQueriesUponConnectionTests." | ||||||
|  |                         "test_ignores_connection_configuration_queries", | ||||||
|  |                     }, | ||||||
|                 } |                 } | ||||||
|             ) |             ) | ||||||
|         else: |         else: | ||||||
|   | |||||||
| @@ -235,10 +235,6 @@ class AssertNumQueriesTests(TestCase): | |||||||
|         self.assertNumQueries(2, test_func) |         self.assertNumQueries(2, test_func) | ||||||
|  |  | ||||||
|  |  | ||||||
| @unittest.skipUnless( |  | ||||||
|     connection.vendor != "sqlite" or not connection.is_in_memory_db(), |  | ||||||
|     "For SQLite in-memory tests, closing the connection destroys the database.", |  | ||||||
| ) |  | ||||||
| class AssertNumQueriesUponConnectionTests(TransactionTestCase): | class AssertNumQueriesUponConnectionTests(TransactionTestCase): | ||||||
|     available_apps = [] |     available_apps = [] | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user