File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
libs/labelbox/tests/data/annotation_import Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
1
import datetime
2
+ import itertools
3
+ import uuid
4
+
5
+ import pytest
6
+
7
+ import labelbox as lb
8
+ from labelbox import Client , OntologyKind , Project
9
+ from labelbox .data .annotation_types import Label
2
10
from labelbox .data .annotation_types .data .generic_data_row_data import (
3
11
GenericDataRowData ,
4
12
)
5
13
from labelbox .data .serialization .ndjson .converter import NDJsonConverter
6
- from labelbox .data .annotation_types import Label
7
- import pytest
8
- import uuid
9
-
10
- import labelbox as lb
11
- from labelbox .schema .media_type import MediaType
12
14
from labelbox .schema .annotation_import import AnnotationImportState
13
- from labelbox import Project , Client , OntologyKind
14
- import itertools
15
+ from labelbox .schema .media_type import MediaType
15
16
16
17
"""
17
18
- integration test for importing mal labels and ground truths with each supported MediaType.
@@ -57,6 +58,7 @@ def test_import_media_types(
57
58
export_v2_test_helpers ,
58
59
helpers ,
59
60
media_type ,
61
+ wait_for_label_processing ,
60
62
):
61
63
annotations_ndjson = list (
62
64
itertools .chain .from_iterable (annotations_by_media_type [media_type ])
@@ -73,6 +75,8 @@ def test_import_media_types(
73
75
assert label_import .state == AnnotationImportState .FINISHED
74
76
assert len (label_import .errors ) == 0
75
77
78
+ wait_for_label_processing (configured_project )[0 ]
79
+
76
80
result = export_v2_test_helpers .run_project_export_v2_task (
77
81
configured_project
78
82
)
You can’t perform that action at this time.
0 commit comments