Skip to content

Commit 86c505e

Browse files
committed
AL-3567: Assignment test case
1 parent 2c70cd6 commit 86c505e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/data/annotation_types/test_label.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,20 @@ def test_highly_nested():
167167
0].feature_schema_id == classification_schema_id
168168
assert label.annotations[0].classifications[
169169
0].value.answer.feature_schema_id == option_schema_id
170+
171+
def test_schema_assignment_confidence():
172+
name = "line_feature"
173+
label = Label(
174+
data=ImageData(arr=np.ones((32, 32, 3), dtype=np.uint8)),
175+
annotations=[
176+
ObjectAnnotation(
177+
value=Line(
178+
points=[Point(x=1, y=2), Point(x=2, y=2)],),
179+
name=name,
180+
confidence=0.914
181+
)
182+
])
183+
184+
185+
assert label.annotations[0].confidence == 0.914
186+

0 commit comments

Comments
 (0)