Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
Update test_rest_api_emotions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Jun 23, 2019
1 parent b08a57b commit d362f7d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _unittests/ut_mokadi/test_rest_api_emotions.py
Expand Up @@ -39,7 +39,11 @@ def test_api_emotions(self):
warnings.warn("Key should be checked or renewed.")
continue
if not isinstance(res, list):
raise TypeError('{}\n{}'.format(type(res), res))
if "Resource not found" in str(res):
warnings.warn("API changed, it should be updated.")
return
else:
raise TypeError('{}\n{}'.format(type(res), res))
self.assertTrue(len(img) > 0)
for _ in res:
fLOG(_)
Expand Down

0 comments on commit d362f7d

Please sign in to comment.