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.
@@ -129,6 +130,7 @@ def test_import_media_types(
129
130
export_v2_test_helpers ,
130
131
helpers ,
131
132
media_type ,
133
+ wait_for_label_processing ,
132
134
):
133
135
annotations_ndjson = list (
134
136
itertools .chain .from_iterable (annotations_by_media_type [media_type ])
@@ -145,6 +147,8 @@ def test_import_media_types(
145
147
assert label_import .state == AnnotationImportState .FINISHED
146
148
assert len (label_import .errors ) == 0
147
149
150
+ wait_for_label_processing (configured_project )[0 ]
151
+
148
152
result = export_v2_test_helpers .run_project_export_v2_task (
149
153
configured_project
150
154
)
You can’t perform that action at this time.
0 commit comments