We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c6ca16f + d8b76f5 commit bbf498eCopy full SHA for bbf498e
tests/integration/test_ontology.py
@@ -1,6 +1,6 @@
1
import pytest
2
3
-from labelbox import OntologyBuilder
+from labelbox import OntologyBuilder, MediaType
4
from labelbox.orm.model import Entity
5
import json
6
import time
@@ -62,7 +62,9 @@ def test_ontology_create_read(client, rand_gen):
62
}
63
feature_schema = client.create_feature_schema(feature_schema_cat_normalized)
64
created_ontology = client.create_ontology_from_feature_schemas(
65
- name=ontology_name, feature_schema_ids=[feature_schema.uid])
+ name=ontology_name,
66
+ feature_schema_ids=[feature_schema.uid],
67
+ media_type=MediaType.Image)
68
tool_normalized = created_ontology.normalized['tools'][0]
69
for k, v in feature_schema_cat_normalized.items():
70
assert tool_normalized[k] == v
0 commit comments