From 14be3db996bd2346722c2a2332938f3a4c8b0f8d Mon Sep 17 00:00:00 2001 From: frostming Date: Fri, 26 Oct 2018 17:22:41 +0800 Subject: [PATCH] Add test case for #3105 --- tests/integration/test_windows.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/integration/test_windows.py b/tests/integration/test_windows.py index 128a6b5d..da138f7a 100644 --- a/tests/integration/test_windows.py +++ b/tests/integration/test_windows.py @@ -65,3 +65,16 @@ def test_local_path_windows_forward_slash(PipenvInstance, pypi): with PipenvInstance(pypi=pypi, chdir=True) as p: c = p.pipenv('install "{0}"'.format(whl.as_posix())) assert c.return_code == 0 + + +@pytest.mark.cli +def test_pipenv_clean_windows(PipenvInstance, pypi): + with PipenvInstance(pypi=pypi, chdir=True) as p: + c = p.pipenv('install requests') + assert c.return_code == 0 + c = p.pipenv('run pip install click') + assert c.return_code == 0 + + c = p.pipenv('clean --dry-run') + assert c.return_code == 0 + assert 'click' in c.out.strip()