mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #830 from krismolendyke/fix-check-unused-test
Add check unused test for mapped package name
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user