Skip to content

Commit 7ae80db

Browse files
authored
Merge pull request #2959 from daspecster/check-type-not-value-for-score
Loosen system tests for Vision Text detection.
2 parents 7d8860f + 31087a1 commit 7ae80db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system_tests/vision.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ def tearDown(self):
415415
def _assert_text(self, text):
416416
self.assertIsInstance(text, EntityAnnotation)
417417
self.assertIn(text.description, self.DESCRIPTIONS)
418-
self.assertIn(text.locale, (None, 'en'))
419-
self.assertNotEqual(text.score, 0.0)
418+
self.assertIn(text.locale, (None, '', 'en'))
419+
self.assertIsInstance(text.score, (type(None), float))
420420

421421
def test_detect_text_content(self):
422422
client = Config.CLIENT

0 commit comments

Comments
 (0)