mirror of https://github.com/explosion/spaCy.git
Fix error in test case parameterization
This commit is contained in:
parent
b9307dfcd7
commit
123d3f2d38
|
@ -41,7 +41,7 @@ def test_tokenizer_handles_digits(tokenizer):
|
||||||
assert tokens[3].text == "1984"
|
assert tokens[3].text == "1984"
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('text', ["google.com", "python.org", "spacy.io", "explosion.ai, http://www.google.com"])
|
@pytest.mark.parametrize('text', ["google.com", "python.org", "spacy.io", "explosion.ai", "http://www.google.com"])
|
||||||
def test_tokenizer_keep_urls(tokenizer, text):
|
def test_tokenizer_keep_urls(tokenizer, text):
|
||||||
tokens = tokenizer(text)
|
tokens = tokenizer(text)
|
||||||
assert len(tokens) == 1
|
assert len(tokens) == 1
|
||||||
|
|
Loading…
Reference in New Issue