mirror of
				https://github.com/django/django.git
				synced 2025-10-26 07:06:08 +00:00 
			
		
		
		
	Fixed a CaptureQueriesContext usage in queries tests.
This commit is contained in:
		| @@ -1950,7 +1950,7 @@ class ExistsSql(TestCase): | |||||||
|             self.assertFalse(Tag.objects.exists()) |             self.assertFalse(Tag.objects.exists()) | ||||||
|         # Ok - so the exist query worked - but did it include too many columns? |         # Ok - so the exist query worked - but did it include too many columns? | ||||||
|         self.assertEqual(len(captured_queries), 1) |         self.assertEqual(len(captured_queries), 1) | ||||||
|         qstr = captured_queries[0] |         qstr = captured_queries[0]['sql'] | ||||||
|         id, name = connection.ops.quote_name('id'), connection.ops.quote_name('name') |         id, name = connection.ops.quote_name('id'), connection.ops.quote_name('name') | ||||||
|         self.assertNotIn(id, qstr) |         self.assertNotIn(id, qstr) | ||||||
|         self.assertNotIn(name, qstr) |         self.assertNotIn(name, qstr) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user