Make test less flakey

This commit is contained in:
Matthew Honnibal 2017-11-06 17:31:40 +01:00
parent 102f797933
commit 407b08017e

View File

@ -9,4 +9,4 @@ import pytest
@pytest.mark.parametrize('word,lemmas', [("chromosomes", ["chromosome"]), ("endosomes", ["endosome"]), ("colocalizes", ["colocaliz", "colocalize"])]) @pytest.mark.parametrize('word,lemmas', [("chromosomes", ["chromosome"]), ("endosomes", ["endosome"]), ("colocalizes", ["colocaliz", "colocalize"])])
def test_issue781(EN, word, lemmas): def test_issue781(EN, word, lemmas):
lemmatizer = EN.Defaults.create_lemmatizer() lemmatizer = EN.Defaults.create_lemmatizer()
assert lemmatizer(word, 'noun', morphology={'number': 'plur'}) == lemmas assert lemmatizer(word, 'noun', morphology={'number': 'plur'}) == sorted(lemmas)