Skip to content

Commit a726766

Browse files
committed
Fix test
1 parent 2a6a61e commit a726766

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unit/test_labels.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ def test_text_recognition_labels(gl_experimental: ExperimentalApi):
7272
iq1 = gl_experimental.submit_image_query(det, "test/assets/cat.jpeg")
7373
gl_experimental.add_label(iq1, "apple text")
7474
iq1 = gl_experimental.get_image_query(iq1.id)
75-
assert iq1.result.label == "apple text"
75+
assert iq1.result.text == "apple text"
7676
gl_experimental.add_label(iq1, "banana text")
7777
iq1 = gl_experimental.get_image_query(iq1.id)
78-
assert iq1.result.label == "banana text"
78+
assert iq1.result.text == "banana text"
7979
gl_experimental.add_label(iq1, "")
8080
iq1 = gl_experimental.get_image_query(iq1.id)
81-
assert iq1.result.label == ""
81+
assert iq1.result.text == ""
8282

8383
with pytest.raises(ApiException) as _:
8484
gl_experimental.add_label(iq1, "MAYBE")

0 commit comments

Comments
 (0)