0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00

Refs #26067 -- Added more tests for ordering in StringAgg.

This commit is contained in:
Simone Pellizzari 2019-04-06 13:41:46 +02:00 committed by Mariusz Felisiak
parent 79065b55a7
commit 47a1f2a06f
No known key found for this signature in database
GPG Key ID: 2EF56372BA48CD1B

View File

@ -164,6 +164,8 @@ class TestGeneralAggregate(PostgreSQLTestCase):
(F('char_field').desc(), 'Foo4;Foo3;Foo2;Foo1'),
(F('char_field').asc(), 'Foo1;Foo2;Foo3;Foo4'),
(F('char_field'), 'Foo1;Foo2;Foo3;Foo4'),
('char_field', 'Foo1;Foo2;Foo3;Foo4'),
('-char_field', 'Foo4;Foo3;Foo2;Foo1'),
)
for ordering, expected_output in ordering_test_cases:
with self.subTest(ordering=ordering, expected_output=expected_output):