Skip to content

Commit

Permalink
test(backend): fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
frgfm committed Jan 17, 2025
1 parent 70f39b0 commit 2b299d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/tests/endpoints/test_detections.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
(None, 1, {"azimuth": 45.6, "bboxes": (0.6, 0.6, 0.6, 0.6, 0.6)}, 422, None),
(None, 1, {"azimuth": 45.6, "bboxes": "[(0.6, 0.6, 0.6, 0.6, 0.6)]"}, 422, None),
(None, 1, {"azimuth": 360, "bboxes": "[(0.6,0.6,0.7,0.7,0.6)]"}, 422, None),
(None, 1, {"azimuth": 45.6, "bboxes": "[(0.6,0.6,0.7,0.7,0.6)]"}, 201, None),
(None, 1, {"azimuth": 0, "bboxes": "[(0.6,0.6,0.7,0.7,0.6)]"}, 201, None),
(None, 1, {"azimuth": 45.6, "bboxes": "[(0.6,0.6,0.7,0.7,0.6)]", "sequence_id": None}, 201, None),
(None, 1, {"azimuth": 0, "bboxes": "[(0.6,0.6,0.7,0.7,0.6)]", "sequence_id": None}, 201, None),
],
)
@pytest.mark.asyncio
Expand Down
3 changes: 2 additions & 1 deletion src/tests/endpoints/test_sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
[
(None, 1, 401, "Not authenticated", None),
(0, 1, 200, None, pytest.detection_table[:3]),
(0, 2, 404, "Table Sequence has no corresponding entry.", None),
(0, 2, 200, None, pytest.detection_table[3:4]),
(0, 99, 404, "Table Sequence has no corresponding entry.", None),
(1, 1, 200, None, pytest.detection_table[:3]),
(1, 2, 403, "Access forbidden.", None),
(2, 1, 403, "Access forbidden.", None),
Expand Down

0 comments on commit 2b299d4

Please sign in to comment.