From 674979cfca16c974f9f03a56ae5fde2f82eb6346 Mon Sep 17 00:00:00 2001 From: Deka Jello Date: Fri, 19 Apr 2024 07:53:56 -0500 Subject: [PATCH] Fix test_pool_search_config.test_sort_by_category to assume default last-created secondary ordering --- .../tests/search/configs/test_pool_search_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/szurubooru/tests/search/configs/test_pool_search_config.py b/server/szurubooru/tests/search/configs/test_pool_search_config.py index e497ddaa..5df9b2e5 100644 --- a/server/szurubooru/tests/search/configs/test_pool_search_config.py +++ b/server/szurubooru/tests/search/configs/test_pool_search_config.py @@ -423,8 +423,8 @@ def test_sort_by_category( ): cat1 = pool_category_factory(name="cat1") cat2 = pool_category_factory(name="cat2") - pool1 = pool_factory(id=1, names=["t1"], category=cat2) - pool2 = pool_factory(id=2, names=["t2"], category=cat2) + pool2 = pool_factory(id=1, names=["t2"], category=cat2) + pool1 = pool_factory(id=2, names=["t1"], category=cat2) pool3 = pool_factory(id=3, names=["t3"], category=cat1) db.session.add_all([pool1, pool2, pool3]) db.session.flush()