We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7d8860f + 31087a1 commit 7ae80dbCopy full SHA for 7ae80db
system_tests/vision.py
@@ -415,8 +415,8 @@ def tearDown(self):
415
def _assert_text(self, text):
416
self.assertIsInstance(text, EntityAnnotation)
417
self.assertIn(text.description, self.DESCRIPTIONS)
418
- self.assertIn(text.locale, (None, 'en'))
419
- self.assertNotEqual(text.score, 0.0)
+ self.assertIn(text.locale, (None, '', 'en'))
+ self.assertIsInstance(text.score, (type(None), float))
420
421
def test_detect_text_content(self):
422
client = Config.CLIENT
0 commit comments