@@ -96,8 +96,8 @@ def _create_project(self, project_type="Vector"):
9696 shell = True ,
9797 )
9898
99- @pytest .mark .skipif (CLI_VERSION and CLI_VERSION != sa .__version__ ,
100- reason = f"Updated package version from { CLI_VERSION } to { sa .__version__ } " )
99+ # @pytest.mark.skipif(CLI_VERSION and CLI_VERSION != sa.__version__,
100+ # reason=f"Updated package version from {CLI_VERSION} to {sa.__version__}")
101101 def test_create_folder (self ):
102102 self ._create_project ()
103103 subprocess .run (
@@ -110,8 +110,8 @@ def test_create_folder(self):
110110 )
111111 self .assertEqual (self .FOLDER_NAME , folder ["name" ])
112112
113- @pytest .mark .skipif (CLI_VERSION and CLI_VERSION != sa .__version__ ,
114- reason = f"Updated package version from { CLI_VERSION } to { sa .__version__ } " )
113+ # @pytest.mark.skipif(CLI_VERSION and CLI_VERSION != sa.__version__,
114+ # reason=f"Updated package version from {CLI_VERSION} to {sa.__version__}")
115115 def test_upload_images (self ):
116116 self ._create_project ()
117117 subprocess .run (
@@ -124,8 +124,8 @@ def test_upload_images(self):
124124 )
125125 self .assertEqual (1 , len (sa .search_images (self .PROJECT_NAME )))
126126
127- @pytest .mark .skipif (CLI_VERSION and CLI_VERSION != sa .__version__ ,
128- reason = f"Updated package version from { CLI_VERSION } to { sa .__version__ } " )
127+ # @pytest.mark.skipif(CLI_VERSION and CLI_VERSION != sa.__version__,
128+ # reason=f"Updated package version from {CLI_VERSION} to {sa.__version__}")
129129 def test_upload_export (self ):
130130 self ._create_project ()
131131 with tempfile .TemporaryDirectory () as temp_dir :
@@ -140,8 +140,8 @@ def test_upload_export(self):
140140 self .assertEqual (len (list (test_dir .glob ("*.jpg" ))), 0 )
141141 self .assertEqual (len (list (test_dir .glob ("*.png" ))), 0 )
142142
143- @pytest .mark .skipif (CLI_VERSION and CLI_VERSION != sa .__version__ ,
144- reason = f"Updated package version from { CLI_VERSION } to { sa .__version__ } " )
143+ # @pytest.mark.skipif(CLI_VERSION and CLI_VERSION != sa.__version__,
144+ # reason=f"Updated package version from {CLI_VERSION} to {sa.__version__}")
145145 def test_vector_pre_annotation_folder_upload_download_cli (self ):
146146 self ._create_project ()
147147
@@ -169,8 +169,8 @@ def test_vector_pre_annotation_folder_upload_download_cli(self):
169169 )
170170 # tod add test
171171
172- @pytest .mark .skipif (CLI_VERSION and CLI_VERSION != sa .__version__ ,
173- reason = f"Updated package version from { CLI_VERSION } to { sa .__version__ } " )
172+ # @pytest.mark.skipif(CLI_VERSION and CLI_VERSION != sa.__version__,
173+ # reason=f"Updated package version from {CLI_VERSION} to {sa.__version__}")
174174 def test_vector_annotation_folder_upload_download_cli (self ):
175175 self ._create_project ()
176176 sa .create_annotation_classes_from_classes_json (
@@ -194,18 +194,18 @@ def test_vector_annotation_folder_upload_download_cli(self):
194194 check = True ,
195195 shell = True ,
196196 )
197- # from src.superannotate.lib.app.interface.cli_interface import CLIFacade
198- # # self, project, folder, data_set_name = None, task = None, format = None
199- # cli_facade = CLIFacade().upload_annotations(self.PROJECT_NAME,self.convertor_data_path,"instances_test",None,"COCO")
197+ from src .superannotate .lib .app .interface .cli_interface import CLIFacade
198+ # self, project, folder, dataset_name = None, task = None, format = None
199+ cli_facade = CLIFacade ().upload_annotations (self .PROJECT_NAME ,self .convertor_data_path ,"instances_test" ,None ,"COCO" )
200200 count_in = len (list (self .vector_folder_path .glob ("*.json" )))
201201 with tempfile .TemporaryDirectory () as temp_dir :
202202 for image_name in sa .search_images (self .PROJECT_NAME ):
203203 sa .download_image_annotations (self .PROJECT_NAME , image_name , temp_dir )
204204 count_out = len (list (Path (temp_dir ).glob ("*.json" )))
205205 self .assertEqual (count_in , count_out )
206206
207- @pytest .mark .skipif (CLI_VERSION and CLI_VERSION != sa .__version__ ,
208- reason = f"Updated package version from { CLI_VERSION } to { sa .__version__ } " )
207+ # @pytest.mark.skipif(CLI_VERSION and CLI_VERSION != sa.__version__,
208+ # reason=f"Updated package version from {CLI_VERSION} to {sa.__version__}")
209209 def test_attach_image_urls (self ):
210210 self ._create_project ()
211211 subprocess .run (
@@ -218,8 +218,8 @@ def test_attach_image_urls(self):
218218
219219 self .assertEqual (3 , len (sa .search_images (self .PROJECT_NAME )))
220220
221- @pytest .mark .skipif (CLI_VERSION and CLI_VERSION != sa .__version__ ,
222- reason = f"Updated package version from { CLI_VERSION } to { sa .__version__ } " )
221+ # @pytest.mark.skipif(CLI_VERSION and CLI_VERSION != sa.__version__,
222+ # reason=f"Updated package version from {CLI_VERSION} to {sa.__version__}")
223223 def test_attach_video_urls (self ):
224224 self ._create_project ("Video" )
225225 subprocess .run (
@@ -231,8 +231,8 @@ def test_attach_video_urls(self):
231231 )
232232 # self.assertEqual(3, len(sa.search_images(self.PROJECT_NAME)))
233233
234- @pytest .mark .skipif (CLI_VERSION and CLI_VERSION != sa .__version__ ,
235- reason = f"Updated package version from { CLI_VERSION } to { sa .__version__ } " )
234+ # @pytest.mark.skipif(CLI_VERSION and CLI_VERSION != sa.__version__,
235+ # reason=f"Updated package version from {CLI_VERSION} to {sa.__version__}")
236236 def test_upload_videos (self ):
237237 self ._create_project ()
238238 subprocess .run (
@@ -245,8 +245,8 @@ def test_upload_videos(self):
245245 )
246246 self .assertEqual (5 , len (sa .search_images (self .PROJECT_NAME )))
247247
248- @pytest .mark .skipif (CLI_VERSION and CLI_VERSION != sa .__version__ ,
249- reason = f"Updated package version from { CLI_VERSION } to { sa .__version__ } " )
248+ # @pytest.mark.skipif(CLI_VERSION and CLI_VERSION != sa.__version__,
249+ # reason=f"Updated package version from {CLI_VERSION} to {sa.__version__}")
250250 def test_attach_document_urls (self ):
251251 self ._create_project ("Document" )
252252 subprocess .run (
0 commit comments