Merge pull request #830 from krismolendyke/fix-check-unused-test

Add check unused test for mapped package name
This commit is contained in:
Erin O'Connell
2017-10-04 21:39:46 -06:00
committed by GitHub
+4
View File
@@ -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