Skip to content

Commit 31087a1

Browse files
committed
Loosen system tests for Vision Text detection.
1 parent 6eed70a commit 31087a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system_tests/vision.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,8 @@ def tearDown(self):
427427
def _assert_text(self, text):
428428
self.assertIsInstance(text, EntityAnnotation)
429429
self.assertIn(text.description, self.DESCRIPTIONS)
430-
self.assertIn(text.locale, (None, 'en'))
431-
self.assertNotEqual(text.score, 0.0)
430+
self.assertIn(text.locale, (None, '', 'en'))
431+
self.assertIsInstance(text.score, (type(None), float))
432432

433433
def test_detect_text_content(self):
434434
client = Config.CLIENT

0 commit comments

Comments
 (0)