Skip to content

Commit 2be6dbb

Browse files
author
Val Brodsky
committed
Cleanup schemanode cleanup code
1 parent 61f8afe commit 2be6dbb

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

libs/labelbox/tests/conftest.py

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,11 @@
2525
from labelbox.schema.queue_mode import QueueMode
2626
from labelbox import Client
2727

28-
from labelbox import Dataset, DataRow
2928
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
3330
from labelbox.schema.annotation_import import LabelImport
34-
from labelbox.schema.catalog import Catalog
3531
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
4032
from labelbox.exceptions import LabelboxError
41-
from contextlib import suppress
42-
from labelbox import Client
4333

4434
IMG_URL = "https://picsum.photos/200/300.jpg"
4535
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):
734724

735725
@pytest.fixture
736726
def configured_batch_project_with_label(client, dataset, data_row,
737-
wait_for_label_processing,
727+
wait_for_label_processing, rand_gen,
738728
teardown_helpers):
739729
"""Project with a batch having one datarow
740730
Project contains an ontology with 1 bbox tool
@@ -1164,23 +1154,9 @@ def teardown_project_labels_ontology_feature_schemas(project: Project):
11641154
classification_feature_schema_ids = [
11651155
feature["featureSchemaId"]
11661156
for feature in ontology.normalized["classifications"]
1167-
] + [
1168-
option["featureSchemaId"]
1169-
for feature in ontology.normalized["classifications"]
1170-
for option in feature.get("options", [])
11711157
]
1172-
11731158
tool_feature_schema_ids = [
11741159
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", [])
11841160
]
11851161

11861162
feature_schema_ids = classification_feature_schema_ids + tool_feature_schema_ids

0 commit comments

Comments
 (0)