Skip to content

Commit bbf498e

Browse files
authored
Merge pull request #833 from Labelbox/tim/fix-broken-test
Fix failing integration test due to missing media type
2 parents c6ca16f + d8b76f5 commit bbf498e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integration/test_ontology.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22

3-
from labelbox import OntologyBuilder
3+
from labelbox import OntologyBuilder, MediaType
44
from labelbox.orm.model import Entity
55
import json
66
import time
@@ -62,7 +62,9 @@ def test_ontology_create_read(client, rand_gen):
6262
}
6363
feature_schema = client.create_feature_schema(feature_schema_cat_normalized)
6464
created_ontology = client.create_ontology_from_feature_schemas(
65-
name=ontology_name, feature_schema_ids=[feature_schema.uid])
65+
name=ontology_name,
66+
feature_schema_ids=[feature_schema.uid],
67+
media_type=MediaType.Image)
6668
tool_normalized = created_ontology.normalized['tools'][0]
6769
for k, v in feature_schema_cat_normalized.items():
6870
assert tool_normalized[k] == v

0 commit comments

Comments
 (0)