File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -72,13 +72,13 @@ def test_text_recognition_labels(gl_experimental: ExperimentalApi):
72
72
iq1 = gl_experimental .submit_image_query (det , "test/assets/cat.jpeg" )
73
73
gl_experimental .add_label (iq1 , "apple text" )
74
74
iq1 = gl_experimental .get_image_query (iq1 .id )
75
- assert iq1 .result .label == "apple text"
75
+ assert iq1 .result .text == "apple text"
76
76
gl_experimental .add_label (iq1 , "banana text" )
77
77
iq1 = gl_experimental .get_image_query (iq1 .id )
78
- assert iq1 .result .label == "banana text"
78
+ assert iq1 .result .text == "banana text"
79
79
gl_experimental .add_label (iq1 , "" )
80
80
iq1 = gl_experimental .get_image_query (iq1 .id )
81
- assert iq1 .result .label == ""
81
+ assert iq1 .result .text == ""
82
82
83
83
with pytest .raises (ApiException ) as _ :
84
84
gl_experimental .add_label (iq1 , "MAYBE" )
You can’t perform that action at this time.
0 commit comments