Skip to content

Commit

Permalink
Fixed tests for non-sqlite dbs
Browse files Browse the repository at this point in the history
  • Loading branch information
Donkie committed Sep 8, 2023
1 parent 6e9154e commit 88d1030
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests_integration/tests/spool/test_find.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 88d1030

Please sign in to comment.