Skip to content

Commit a8e8911

Browse files
committed
Added attributes to unit tests
1 parent e22265f commit a8e8911

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

libs/labelbox/tests/unit/test_unit_ontology.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from lbox.exceptions import InconsistentOntologyException
55

66
from labelbox import Classification, OntologyBuilder, Option, Tool
7+
from labelbox.schema.tool_building.types import FeatureSchemaAttribute
78

89
_SAMPLE_ONTOLOGY = {
910
"tools": [
@@ -34,7 +35,12 @@
3435
"name": "bbox",
3536
"color": "#FF0000",
3637
"tool": "rectangle",
37-
"attributes": None,
38+
"attributes": [
39+
FeatureSchemaAttribute(
40+
attriubteName="auto-ocr",
41+
attributeValue="true"
42+
)
43+
],
3844
"classifications": [
3945
{
4046
"schemaNodeId": None,
@@ -71,7 +77,12 @@
7177
"options": [],
7278
},
7379
],
74-
"attributes": None,
80+
"attributes": [
81+
FeatureSchemaAttribute(
82+
attributeName="requires-connection",
83+
attributeValue="true"
84+
)
85+
],
7586
},
7687
{
7788
"schemaNodeId": None,

0 commit comments

Comments
 (0)