summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_aggregates.py
diff options
context:
space:
mode:
authorSimone Pellizzari <simone6021@libero.it>2019-04-06 13:41:46 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-04-06 13:41:46 +0200
commit47a1f2a06fac2ee88d3ba9d88e8f7c45a4f6f5e8 (patch)
tree21ecc1907f55e0fbed037b378eb2721b8837fc91 /tests/postgres_tests/test_aggregates.py
parent79065b55a70cd220820a260a1c54851b7be0615a (diff)
downloaddjango-47a1f2a06fac2ee88d3ba9d88e8f7c45a4f6f5e8.tar.gz
Refs #26067 -- Added more tests for ordering in StringAgg.
Diffstat (limited to 'tests/postgres_tests/test_aggregates.py')
-rw-r--r--tests/postgres_tests/test_aggregates.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/postgres_tests/test_aggregates.py b/tests/postgres_tests/test_aggregates.py
index ec81f5ad75..6b77787dcc 100644
--- a/tests/postgres_tests/test_aggregates.py
+++ b/tests/postgres_tests/test_aggregates.py
@@ -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):