From 58156fe61e351f78737920dcdaa6138a009db795 Mon Sep 17 00:00:00 2001 From: Mayank Agarwal Date: Wed, 2 Aug 2023 09:44:05 +0530 Subject: [PATCH] rename test --- test/dataset/formats/test_pascal_voc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/dataset/formats/test_pascal_voc.py b/test/dataset/formats/test_pascal_voc.py index bfd56854..9d1bf28e 100644 --- a/test/dataset/formats/test_pascal_voc.py +++ b/test/dataset/formats/test_pascal_voc.py @@ -13,7 +13,7 @@ from supervision.dataset.formats.pascal_voc import ( ) -def are_xml_elements_equal_with_offset(elem1, elem2): +def are_xml_elements_equal_with_voc_offset(elem1, elem2): if ( elem1.tag != elem2.tag or elem1.attrib != elem2.attrib @@ -23,7 +23,7 @@ def are_xml_elements_equal_with_offset(elem1, elem2): return False for child1, child2 in zip(elem1, elem2): - if not are_xml_elements_equal_with_offset(child1, child2): + if not are_xml_elements_equal_with_voc_offset(child1, child2): return False return True @@ -61,7 +61,7 @@ def test_object_to_pascal_voc( ): with exception: result = object_to_pascal_voc(xyxy=xyxy, name=name, polygon=polygon) - assert are_xml_elements_equal_with_offset(result, expected_result) + assert are_xml_elements_equal_with_voc_offset(result, expected_result) @pytest.mark.parametrize( @@ -138,7 +138,7 @@ NO_DETECTIONS = """""" ), ], ) -def test_detections_from_xml_obj_with_offset( +def test_detections_from_xml_obj_with_voc_offset( xml_string, classes, resolution_wh, force_masks, expected_result, exception ): with exception: