Skip to content

Commit b72e044

Browse files
author
Val Brodsky
committed
More fixes
1 parent 9b15d91 commit b72e044

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

libs/labelbox/tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ def teardown_project_labels_ontology_feature_schemas(project: Project):
11621162
ontology_id = ontology.uid
11631163
client = project.client
11641164
classification_feature_schema_ids = [
1165-
feature["schemaNodeId"]
1165+
feature["featureSchemaId"]
11661166
for feature in ontology.normalized["classifications"]
11671167
] + [
11681168
option["featureSchemaId"]
@@ -1171,7 +1171,7 @@ def teardown_project_labels_ontology_feature_schemas(project: Project):
11711171
]
11721172

11731173
tool_feature_schema_ids = [
1174-
feature["schemaNodeId"] for feature in ontology.normalized["tools"]
1174+
feature["featureSchemaId"] for feature in ontology.normalized["tools"]
11751175
] + [
11761176
classification["featureSchemaId"]
11771177
for tool in ontology.normalized["tools"]
@@ -1216,7 +1216,7 @@ def teardown_ontology_feature_schemas(ontology: Ontology):
12161216
]
12171217

12181218
tool_feature_schema_ids = [
1219-
feature["schemaNodeId"] for feature in ontology.normalized["tools"]
1219+
feature["featureSchemaId"] for feature in ontology.normalized["tools"]
12201220
] + [
12211221
classification["featureSchemaId"]
12221222
for tool in ontology.normalized["tools"]

libs/labelbox/tests/data/test_data_row_metadata.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -92,21 +92,6 @@ def make_named_metadata(dr_id) -> DataRowMetadata:
9292
return metadata
9393

9494

95-
@pytest.mark.skip(reason="broken export v1 api, to be retired soon")
96-
def test_export_empty_metadata(
97-
client, configured_project_with_label, wait_for_data_row_processing
98-
):
99-
project, _, data_row, _ = configured_project_with_label
100-
data_row = wait_for_data_row_processing(client, data_row)
101-
102-
export_task = project.export(params={"metadata_fields": True})
103-
export_task.wait_till_done()
104-
stream = export_task.get_buffered_stream()
105-
data_row = [data_row.json for data_row in stream][0]
106-
107-
assert data_row["metadata_fields"] == []
108-
109-
11095
def test_bulk_export_datarow_metadata(data_row, mdo: DataRowMetadataOntology):
11196
metadata = make_metadata(data_row.uid)
11297
mdo.bulk_upsert([metadata])

0 commit comments

Comments
 (0)