Kaydet (Commit) 11e6bf9b authored tarafından Simon Charette's avatar Simon Charette

Fixed a CaptureQueriesContext usage in queries tests.

üst 3b0cdb14
......@@ -1950,7 +1950,7 @@ class ExistsSql(TestCase):
self.assertFalse(Tag.objects.exists())
# Ok - so the exist query worked - but did it include too many columns?
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')
self.assertNotIn(id, qstr)
self.assertNotIn(name, qstr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment