From de5cdf594957d8d91d03cc727d9c9e94fe9fc97c Mon Sep 17 00:00:00 2001 From: Tomas Orsava Date: Wed, 6 May 2020 15:41:41 +0200 Subject: [PATCH] Mark unit tests requiring network connection --- tests/unit/test_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 4b9cd75c..24df26a6 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -78,6 +78,7 @@ def mock_unpack(link, source_dir, download_dir, only_download=False, session=Non @pytest.mark.utils @pytest.mark.parametrize("deps, expected", DEP_PIP_PAIRS) +@pytest.mark.needs_internet def test_convert_deps_to_pip(monkeypatch, deps, expected): with monkeypatch.context() as m: import pip_shims @@ -223,6 +224,7 @@ class TestUtils: assert pipenv.utils.is_valid_url(not_url) is False @pytest.mark.utils + @pytest.mark.needs_internet def test_download_file(self): url = "https://github.com/pypa/pipenv/blob/master/README.md" output = "test_download.md"