Skip to content

Commit fe04a90

Browse files
Narek MkhitaryanNarek Mkhitaryan
authored andcommitted
fix upload_annotations
1 parent 890c86a commit fe04a90

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/superannotate/lib/core/usecases/annotations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def _validate_json(self, json_data: dict) -> list:
287287
use_case = ValidateAnnotationUseCase(
288288
reporter=self.reporter,
289289
team_id=self._project.team_id,
290-
project_type=self._project.type,
290+
project_type=self._project.type.value,
291291
annotation=json_data,
292292
service_provider=self._service_provider,
293293
)

tests/integration/annotations/test_upload_annotations.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,5 @@ def test_download_annotations(self):
267267
assert len(downloaded_data) == len(
268268
annotations
269269
), "Mismatch in annotation count"
270-
assert (
271-
downloaded_data == annotations
272-
), "Downloaded annotations do not match uploaded annotations"
270+
for a in downloaded_data:
271+
assert a in annotations, "Mismatch in annotation count"

0 commit comments

Comments
 (0)