From 387c7aba15228557cdbbfae0ee3ab90009769584 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sun, 24 May 2020 14:55:16 +0200 Subject: [PATCH] Update test --- spacy/tests/test_misc.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spacy/tests/test_misc.py b/spacy/tests/test_misc.py index ddf1bb332..9e67ae83b 100644 --- a/spacy/tests/test_misc.py +++ b/spacy/tests/test_misc.py @@ -26,10 +26,12 @@ def test_util_ensure_path_succeeds(text): assert isinstance(path, Path) -@pytest.mark.parametrize("package", ["numpy"]) -def test_util_is_package(package): +@pytest.mark.parametrize( + "package,result", [("numpy", True), ("sfkodskfosdkfpsdpofkspdof", False)] +) +def test_util_is_package(package, result): """Test that an installed package via pip is recognised by util.is_package.""" - assert util.is_package(package) + assert util.is_package(package) is result @pytest.mark.parametrize("package", ["thinc"])