File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 1- import os
21import json
2+ import os
33import tempfile
44from pathlib import Path
5- from tests import DATA_SET_PATH
5+ from unittest import TestCase
66
77from src .superannotate import convert_project_type
8- from unittest import TestCase
8+ from tests import DATA_SET_PATH
99
1010
1111class TestConvertProjectType (TestCase ):
@@ -20,12 +20,10 @@ def folder_path(self):
2020 def test_convert_pixel_with_holes_to_vector (self ):
2121 with tempfile .TemporaryDirectory () as temp_dir :
2222 convert_project_type (self .folder_path , temp_dir )
23+
2324 assert len (list (Path (temp_dir ).glob ("*" ))) == 5
2425 annotation_files = [i .name for i in Path (temp_dir ).glob ("*___objects.json" )]
2526 assert len (annotation_files ) == 2
2627 with open (os .path .join (temp_dir , f"{ self .SECOND_IMAGE } ___objects.json" )) as file :
2728 data = json .load (file )
2829 assert len (data ['instances' ][0 ]['exclude' ]) == 4
29-
30-
31-
You can’t perform that action at this time.
0 commit comments