From 11e6bf9bdfaecd5325686599af5b21b5b945e61c Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Thu, 9 Jul 2015 14:44:16 -0400 Subject: [PATCH] Fixed a CaptureQueriesContext usage in queries tests. --- tests/queries/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/queries/tests.py b/tests/queries/tests.py index 6fb1ea6066..893ed1e862 100644 --- a/tests/queries/tests.py +++ b/tests/queries/tests.py @@ -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)