remove useless tests

This commit is contained in:
frostming
2018-11-14 13:12:22 +08:00
parent 2e10ff6c7d
commit 095c9ef730
2 changed files with 1 additions and 27 deletions
+1 -1
View File
@@ -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.
-26
View File
@@ -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