From 3a8c4d63eaf1529b76cc102428cb9d1895cd3c3f Mon Sep 17 00:00:00 2001 From: SkalskiP Date: Fri, 14 Jul 2023 15:06:55 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20tests=20added?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/dataset/test_utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/dataset/test_utils.py b/test/dataset/test_utils.py index 589a8f38..70105d16 100644 --- a/test/dataset/test_utils.py +++ b/test/dataset/test_utils.py @@ -204,6 +204,12 @@ def test_build_class_index_mapping( mock_detections(xyxy=[[0, 0, 10, 10]], class_id=[1]), DoesNotRaise() ), # single mapping + ( + {0: 1, 1: 2}, + Detections.empty(), + Detections.empty(), + DoesNotRaise() + ), # empty detections ( {0: 1, 1: 2}, mock_detections(xyxy=[[0, 0, 10, 10]], class_id=[0]),