Skip to content

Commit

Permalink
test: empty detection check in getitem
Browse files Browse the repository at this point in the history
  • Loading branch information
souhhmm committed Dec 3, 2024
1 parent a4dfcac commit 37eadfe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/detection/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@
None,
pytest.raises(IndexError),
),
(
Detections.empty(),
np.isin(Detections.empty()["class_name"], [0, 1, 2]),
Detections.empty(),
DoesNotRaise(),
),
],
)
def test_getitem(
Expand Down

0 comments on commit 37eadfe

Please sign in to comment.