From 37eadfe3059cb8d37b0ad25fb91462ef3e7469ef Mon Sep 17 00:00:00 2001 From: Soham Date: Tue, 3 Dec 2024 19:24:41 +0530 Subject: [PATCH] test: empty detection check in getitem --- test/detection/test_core.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/detection/test_core.py b/test/detection/test_core.py index 61796bef2..402d9ef1c 100644 --- a/test/detection/test_core.py +++ b/test/detection/test_core.py @@ -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(