From a8cfde46d33076672aa4fdbfa0f448e0bc1c593d Mon Sep 17 00:00:00 2001 From: Juan Miguel Cejuela Date: Wed, 1 Mar 2017 21:43:08 +0100 Subject: [PATCH] =?UTF-8?q?#781=20Fix=20test=20=E2=80=94=20colocalizes=20i?= =?UTF-8?q?s=20lemmatized=20to=20colocaliz=20and=20colicalize?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spacy/tests/regression/test_issue781.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spacy/tests/regression/test_issue781.py b/spacy/tests/regression/test_issue781.py index 56a1a9ef0..8a98b48b8 100644 --- a/spacy/tests/regression/test_issue781.py +++ b/spacy/tests/regression/test_issue781.py @@ -5,6 +5,6 @@ import pytest # Note: "chromosomes" worked previous the bug fix -@pytest.mark.parametrize('word,lemma', [("chromosomes", "chromosome"), ("endosomes", "endosome"), ("colocalizes", "colocalize")]) -def test_issue781(path, lemmatizer, word, lemma): - assert lemmatizer(word, 'noun', morphology={'number': 'plur'}) == set([lemma]) +@pytest.mark.parametrize('word,lemmas', [("chromosomes", ["chromosome"]), ("endosomes", ["endosome"]), ("colocalizes", ["colocalize", "colocaliz"])]) +def test_issue781(path, lemmatizer, word, lemmas): + assert lemmatizer(word, 'noun', morphology={'number': 'plur'}) == set(lemmas)