Skip to content
This repository
Browse code

Fixing a testcase

  • Loading branch information...
commit 35e354784c3fc3aadf526ca2c0a73fbbec4ec54b 1 parent 53473ba
Charles Leifer authored August 19, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  tests.py
2  tests.py
@@ -2497,7 +2497,7 @@ def test_annotate_custom_aggregate(self):
2497 2497
     def test_annotate_multiple(self):
2498 2498
         annotated = Blog.select().annotate(Entry).annotate(Entry, Max('pub_date', 'max_pub'))
2499 2499
         self.assertSQLEqual(annotated.sql(), (
2500  
-            'SELECT t1."id", t1."title", COUNT(t2.`pk`) AS count, MAX(t2."pub_date") AS max_pub FROM "blog" AS t1 INNER JOIN "entry" AS t2 ON t1."id" = t2."blog_id" GROUP BY t1."id", t1."title"', []
  2500
+            'SELECT t1.`id`, t1.`title`, COUNT(t2.`pk`) AS count, MAX(t2.`pub_date`) AS max_pub FROM `blog` AS t1 INNER JOIN `entry` AS t2 ON t1.`id` = t2.`blog_id` GROUP BY t1.`id`, t1.`title`', []
2501 2501
         ))
2502 2502
         # No leftover asterisks
2503 2503
         self.assertEqual(annotated.sql()[0].count('*'), 0)

0 notes on commit 35e3547

Please sign in to comment.
Something went wrong with that request. Please try again.