Skip to content

Commit

Permalink
remove useless tests
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Nov 14, 2018
1 parent 2e10ff6 commit 095c9ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
2 changes: 1 addition & 1 deletion 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.
26 changes: 0 additions & 26 deletions tests/unit/test_utils.py
Expand Up @@ -169,32 +169,6 @@ def test_is_vcs(self, entry, expected):
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
Expand Down

0 comments on commit 095c9ef

Please sign in to comment.