Skip to content

Commit 23e7684

Browse files
committed
Schema changes
1 parent 8f12e39 commit 23e7684

File tree

5 files changed

+776
-8
lines changed

5 files changed

+776
-8
lines changed

requirements_dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
superannotate_schemas>=v1.0.45dev1
1+
superannotate_schemas>=v1.0.45dev4
22

src/superannotate/lib/infrastructure/controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ def delete_annotations(
13551355

13561356
@staticmethod
13571357
def validate_annotations(
1358-
project_type: str, annotation: dict, allow_extra: bool = False
1358+
project_type: str, annotation: dict, allow_extra: bool = True
13591359
):
13601360
use_case = usecases.ValidateAnnotationUseCase(
13611361
project_type,

tests/integration/annotations/test_get_annotations_per_frame.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,4 @@ def test_video_annotation_upload(self):
5656
)
5757
)
5858
)
59+

tests/unit/test_validators.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
import tempfile
44
from os.path import dirname
55
from unittest import TestCase
6-
`from unittest.mock import patch
7-
`
8-
from pydantic import ValidationError
6+
from unittest.mock import patch
97

10-
from src.superannotate import SAClient
11-
sa = SAClient()
128
from superannotate_schemas.validators import AnnotationValidators
139

10+
from src.superannotate import SAClient
1411

12+
sa = SAClient()
1513
VECTOR_ANNOTATION_JSON_WITH_BBOX = """
1614
{
1715
"metadata": {
@@ -1668,7 +1666,6 @@ def test_validate_video_point_labels(self, mock_print):
16681666
"instances[0].meta.pointLabels value is not a valid dict",
16691667
)
16701668

1671-
16721669
def test_validate_video_point_labels_bad_keys(self):
16731670
with tempfile.TemporaryDirectory() as tmpdir_name:
16741671
with open(f"{tmpdir_name}/test_validate_video_point_labels_bad_keys.json",

0 commit comments

Comments
 (0)