From dfec732860cd60918b296e54a151f0a86a2ec72c Mon Sep 17 00:00:00 2001 From: jxltom Date: Wed, 5 Dec 2018 10:30:28 +0800 Subject: [PATCH] Add test for pipenv --clear --- tests/integration/test_cli.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/integration/test_cli.py b/tests/integration/test_cli.py index a38883e0..2545e014 100644 --- a/tests/integration/test_cli.py +++ b/tests/integration/test_cli.py @@ -232,3 +232,11 @@ import records c = p.pipenv('check --unused .') assert 'tablib' not in c.out + + +@pytest.mark.cli +def test_pipenv_clear(PipenvInstance): + with PipenvInstance() as p: + c = p.pipenv('--clear') + assert c.return_code == 0 + assert 'Clearing caches' in c.out