Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Naofal-Helal committed Sep 22, 2024
1 parent 472b118 commit f046425
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/integration/test_uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,3 +336,26 @@ def test_category_not_sorted_without_directive(pipenv_instance_private_pypi):
"colorama",
"atomicwrites",
]


@pytest.mark.uninstall
def test_uninstall_whithout_venv(pipenv_instance_private_pypi):
with pipenv_instance_private_pypi() as p:
with open(p.pipfile_path, "w") as f:
contents = """
[packages]
colorama = "*"
atomicwrites = "*"
""".strip()
f.write(contents)

c = p.pipenv("install")
assert c.returncode == 0

c = p.pipenv("uninstall --all")
assert c.returncode == 0
assert list(p.pipfile["packages"].keys()) == [
"parse",
"colorama",
"atomicwrites",
]

0 comments on commit f046425

Please sign in to comment.