@@ -66,10 +66,8 @@ def test_basic_folders(self):
6666 self .assertIsInstance (folder , dict )
6767 self .assertEqual (folder ["name" ], self .TEST_FOLDER_NAME_1 )
6868
69- # todo fix
70- # with pytest.raises(EmptyOutputError) as exc_info:
71- # sa.get_folder_metadata(self.PROJECT_NAME, self.TEST_FOLDER_NAME_2)
72- # self.assertTrue("Folder not found" in str(exc_info))
69+ with self .assertRaisesRegexp (Exception , "Folder not found" ):
70+ sa .get_folder_metadata (self .PROJECT_NAME , self .TEST_FOLDER_NAME_2 )
7371
7472 sa .upload_images_from_folder_to_project (
7573 f"{ self .PROJECT_NAME } /{ self .TEST_FOLDER_NAME_1 } " ,
@@ -89,15 +87,6 @@ def test_basic_folders(self):
8987 images = sa .search_images (f"{ self .PROJECT_NAME } /{ self .TEST_FOLDER_NAME_1 } " )
9088 self .assertEqual (len (images ), 4 )
9189
92- # todo fix
93- # with pytest.raises(AppException) as e:
94- # sa.upload_images_from_folder_to_project(
95- # f"{self.PROJECT_NAME}/{self.TEST_FOLDER_NAME_1}",
96- # self.folder_path,
97- # annotation_status="InProgress",
98- # )
99- # self.assertTrue("Folder not found" in str(e))
100-
10190 folder_metadata = sa .create_folder (self .PROJECT_NAME , self .TEST_FOLDER_NAME_2 )
10291 self .assertEqual (folder_metadata ["name" ], self .TEST_FOLDER_NAME_2 )
10392
0 commit comments