diff options
| author | Anssi Kääriäinen <akaariai@gmail.com> | 2013-03-13 12:44:24 +0200 |
|---|---|---|
| committer | Anssi Kääriäinen <akaariai@gmail.com> | 2013-03-13 12:44:24 +0200 |
| commit | bd0cba58aafe582526086de86136060cedde38cf (patch) | |
| tree | 8d9773576b5aae6f5d6719e501a0b3501cf66486 /tests | |
| parent | 747f7d25490abc3d7fdb119f0ce3708d450eb4c2 (diff) | |
Fixed failing aggregation tests on MySQL
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/aggregation_regress/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/aggregation_regress/tests.py b/tests/aggregation_regress/tests.py index 20677270f5..6c5a43664a 100644 --- a/tests/aggregation_regress/tests.py +++ b/tests/aggregation_regress/tests.py @@ -901,7 +901,7 @@ class AggregationTests(TestCase): # There should only be one GROUP BY clause, for the `id` column. # `name` and `age` should not be grouped on. - grouping, gb_params = results.query.get_compiler(using='default').get_grouping([]) + grouping, gb_params = results.query.get_compiler(using='default').get_grouping([], []) self.assertEqual(len(grouping), 1) assert 'id' in grouping[0] assert 'name' not in grouping[0] @@ -930,7 +930,7 @@ class AggregationTests(TestCase): def test_aggregate_duplicate_columns_only(self): # Works with only() too. results = Author.objects.only('id', 'name').annotate(num_contacts=Count('book_contact_set')) - grouping, gb_params = results.query.get_compiler(using='default').get_grouping([]) + grouping, gb_params = results.query.get_compiler(using='default').get_grouping([], []) self.assertEqual(len(grouping), 1) assert 'id' in grouping[0] assert 'name' not in grouping[0] @@ -960,7 +960,7 @@ class AggregationTests(TestCase): # And select_related() results = Book.objects.select_related('contact').annotate( num_authors=Count('authors')) - grouping, gb_params = results.query.get_compiler(using='default').get_grouping([]) + grouping, gb_params = results.query.get_compiler(using='default').get_grouping([], []) self.assertEqual(len(grouping), 1) assert 'id' in grouping[0] assert 'name' not in grouping[0] |
