From aa733275d250f4b2cd27c9f195298e828135ab47 Mon Sep 17 00:00:00 2001 From: Kris Date: Wed, 4 Oct 2017 10:53:21 -0400 Subject: [PATCH] Add check unused test for mapped package name --- tests/test_pipenv.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_pipenv.py b/tests/test_pipenv.py index 5aedbb98..80491eeb 100644 --- a/tests/test_pipenv.py +++ b/tests/test_pipenv.py @@ -502,13 +502,17 @@ requests = {version = "*"} with PipenvInstance() as p: with PipenvInstance(chdir=True) as p: + with open('t.py', 'w') as f: + f.write('import git') + p.pipenv('install GitPython') p.pipenv('install requests') p.pipenv('install tablib') assert 'requests' in p.pipfile['packages'] c = p.pipenv('check --unused .') + assert 'GitPython' not in c.out assert 'tablib' in c.out @pytest.mark.check