Skip to content

Commit 996952c

Browse files
committed
Updated convert_project_type
1 parent 54114d5 commit 996952c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/integration/test_convert_project_type.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import os
21
import json
2+
import os
33
import tempfile
44
from pathlib import Path
5-
from tests import DATA_SET_PATH
5+
from unittest import TestCase
66

77
from src.superannotate import convert_project_type
8-
from unittest import TestCase
8+
from tests import DATA_SET_PATH
99

1010

1111
class 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-

0 commit comments

Comments
 (0)