From 095c9ef73000cd9616f1faff0d0dfc017628caa4 Mon Sep 17 00:00:00 2001 From: frostming Date: Wed, 14 Nov 2018 13:12:22 +0800 Subject: [PATCH] remove useless tests --- news/3145.bugfix.rst | 2 +- tests/unit/test_utils.py | 26 -------------------------- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/news/3145.bugfix.rst b/news/3145.bugfix.rst index 16696e27..e0ed5095 100644 --- a/news/3145.bugfix.rst +++ b/news/3145.bugfix.rst @@ -1 +1 @@ -Hashes for remote andd local non-PyPI artifacts will now be included in ``Pipfile.lock`` during resolution. +Hashes for remote and local non-PyPI artifacts will now be included in ``Pipfile.lock`` during resolution. diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 40977ede..422c1002 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -169,32 +169,6 @@ class TestUtils: from pipenv.vendor.requirementslib.utils import is_vcs assert is_vcs(entry) is expected - @pytest.mark.utils - def test_split_file(self): - pipfile_dict = { - "packages": { - "requests": {"git": "https://github.com/kennethreitz/requests.git"}, - "Flask": "*", - "tablib": {"path": ".", "editable": True}, - }, - "dev-packages": { - "Django": "==1.10", - "click": {"svn": "https://svn.notareal.com/click"}, - "crayons": {"hg": "https://hg.alsonotreal.com/crayons"}, - }, - } - split_dict = pipenv.utils.split_file(pipfile_dict) - assert list(split_dict["packages"].keys()) == ["Flask"] - assert split_dict["packages-vcs"] == { - "requests": {"git": "https://github.com/kennethreitz/requests.git"} - } - assert split_dict["packages-editable"] == { - "tablib": {"path": ".", "editable": True} - } - assert list(split_dict["dev-packages"].keys()) == ["Django"] - assert "click" in split_dict["dev-packages-vcs"] - assert "crayons" in split_dict["dev-packages-vcs"] - @pytest.mark.utils def test_python_version_from_bad_path(self): assert pipenv.utils.python_version("/fake/path") is None