|
25 | 25 | from labelbox.schema.queue_mode import QueueMode
|
26 | 26 | from labelbox import Client
|
27 | 27 |
|
28 |
| -from labelbox import Dataset, DataRow |
29 | 28 | from labelbox import LabelingFrontend
|
30 |
| -from labelbox import OntologyBuilder, Tool, Option, Classification, MediaType |
31 |
| -from labelbox.orm import query |
32 |
| -from labelbox.pagination import PaginatedCollection |
| 29 | +from labelbox import OntologyBuilder, Tool, Option, Classification |
33 | 30 | from labelbox.schema.annotation_import import LabelImport
|
34 |
| -from labelbox.schema.catalog import Catalog |
35 | 31 | from labelbox.schema.enums import AnnotationImportState
|
36 |
| -from labelbox.schema.invite import Invite |
37 |
| -from labelbox.schema.quality_mode import QualityMode |
38 |
| -from labelbox.schema.queue_mode import QueueMode |
39 |
| -from labelbox.schema.user import User |
40 | 32 | from labelbox.exceptions import LabelboxError
|
41 |
| -from contextlib import suppress |
42 |
| -from labelbox import Client |
43 | 33 |
|
44 | 34 | IMG_URL = "https://picsum.photos/200/300.jpg"
|
45 | 35 | MASKABLE_IMG_URL = "https://storage.googleapis.com/labelbox-datasets/image_sample_data/2560px-Kitano_Street_Kobe01s5s4110.jpeg"
|
@@ -734,7 +724,7 @@ def big_dataset(dataset: Dataset):
|
734 | 724 |
|
735 | 725 | @pytest.fixture
|
736 | 726 | def configured_batch_project_with_label(client, dataset, data_row,
|
737 |
| - wait_for_label_processing, |
| 727 | + wait_for_label_processing, rand_gen, |
738 | 728 | teardown_helpers):
|
739 | 729 | """Project with a batch having one datarow
|
740 | 730 | Project contains an ontology with 1 bbox tool
|
@@ -1164,23 +1154,9 @@ def teardown_project_labels_ontology_feature_schemas(project: Project):
|
1164 | 1154 | classification_feature_schema_ids = [
|
1165 | 1155 | feature["featureSchemaId"]
|
1166 | 1156 | for feature in ontology.normalized["classifications"]
|
1167 |
| - ] + [ |
1168 |
| - option["featureSchemaId"] |
1169 |
| - for feature in ontology.normalized["classifications"] |
1170 |
| - for option in feature.get("options", []) |
1171 | 1157 | ]
|
1172 |
| - |
1173 | 1158 | tool_feature_schema_ids = [
|
1174 | 1159 | feature["featureSchemaId"] for feature in ontology.normalized["tools"]
|
1175 |
| - ] + [ |
1176 |
| - classification["featureSchemaId"] |
1177 |
| - for tool in ontology.normalized["tools"] |
1178 |
| - for classification in tool.get("classifications", []) |
1179 |
| - ] + [ |
1180 |
| - option["featureSchemaId"] |
1181 |
| - for tool in ontology.normalized["tools"] |
1182 |
| - for classification in tool.get("classifications", []) |
1183 |
| - for option in classification.get("options", []) |
1184 | 1160 | ]
|
1185 | 1161 |
|
1186 | 1162 | feature_schema_ids = classification_feature_schema_ids + tool_feature_schema_ids
|
|
0 commit comments