We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6eed70a commit 31087a1Copy full SHA for 31087a1
1 file changed
system_tests/vision.py
@@ -427,8 +427,8 @@ def tearDown(self):
427
def _assert_text(self, text):
428
self.assertIsInstance(text, EntityAnnotation)
429
self.assertIn(text.description, self.DESCRIPTIONS)
430
- self.assertIn(text.locale, (None, 'en'))
431
- self.assertNotEqual(text.score, 0.0)
+ self.assertIn(text.locale, (None, '', 'en'))
+ self.assertIsInstance(text.score, (type(None), float))
432
433
def test_detect_text_content(self):
434
client = Config.CLIENT
0 commit comments