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

Commit

Permalink
Update test_LONG_wikipedia.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Jul 24, 2021
1 parent 193e324 commit 3592da1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions _unittests/ut_mokadi/test_LONG_wikipedia.py
Expand Up @@ -39,12 +39,10 @@ def test_dictionary_synonym(self):
def test_dictionary_synonym_travail(self):
res = synonyms_wiktionary("travail")
self.assertTrue(isinstance(res, list))
self.assertIn(len(res), (9, 10))
self.assertEqual(len(res), 9)
ans1 = ['boulot', 'chagrin', 'emploi', 'gagne-pain',
'job', 'métier', 'profession', 'job', 'taf', 'turbin']
ans2 = ans1.copy()
del ans2[ans2.index('job')]
self.assertIn(res, (ans1, ans2))
'job', 'métier', 'profession', 'taf', 'turbin']
self.assertIn(res, ans1)


if __name__ == "__main__":
Expand Down

0 comments on commit 3592da1

Please sign in to comment.