🧪 tests added
This commit is contained in:
parent
bfe058c307
commit
3a8c4d63ea
|
|
@ -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]),
|
||||
|
|
|
|||
Loading…
Reference in New Issue