From 88d103013865159db78d554e6bbc4f8c6e64776d Mon Sep 17 00:00:00 2001 From: Donkie Date: Fri, 8 Sep 2023 21:14:39 +0200 Subject: [PATCH] Fixed tests for non-sqlite dbs --- tests_integration/tests/spool/test_find.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests_integration/tests/spool/test_find.py b/tests_integration/tests/spool/test_find.py index f3b9c5caa..84544df73 100644 --- a/tests_integration/tests/spool/test_find.py +++ b/tests_integration/tests/spool/test_find.py @@ -134,24 +134,24 @@ def test_find_all_spools_including_archived(spools: Fixture): def test_find_all_spools_sort_asc(spools: Fixture): # Execute - result = httpx.get(f"{URL}/api/v1/spool?sort=location:asc") + result = httpx.get(f"{URL}/api/v1/spool?sort=id:asc") result.raise_for_status() # Verify spools_result = result.json() assert len(spools_result) == 4 - assert spools_result[3] == spools.spools[0] + assert spools_result[0] == spools.spools[0] def test_find_all_spools_sort_desc(spools: Fixture): # Execute - result = httpx.get(f"{URL}/api/v1/spool?sort=location:desc") + result = httpx.get(f"{URL}/api/v1/spool?sort=id:desc") result.raise_for_status() # Verify spools_result = result.json() assert len(spools_result) == 4 - assert spools_result[0] == spools.spools[0] + assert spools_result[-1] == spools.spools[0] def test_find_all_spools_limit_asc(spools: Fixture):