Merge pull request #627 from vovanbo/fix-bug-with-dry-run-update

Fix bug with misprint of "project" variable in update method of CLI
This commit is contained in:
Nate Prewitt
2017-09-21 04:15:13 -06:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -2021,7 +2021,7 @@ def update(dev=False, three=None, python=None, dry_run=False, bare=False, dont_u
pass
# Resolve dependency tree.
for result in resolve_deps(deps, sources=project.sources, clear=clear, which=which, which_pip=which_pip, project=projct):
for result in resolve_deps(deps, sources=project.sources, clear=clear, which=which, which_pip=which_pip, project=project):
name = result['name']
installed = result['version']
+1
View File
@@ -36,6 +36,7 @@ class TestPipenv():
assert delegator.run('pipenv install regex').return_code == 0 # failing before
assert delegator.run('pipenv install git+https://github.com/requests/requests.git@v2.18.4#egg=requests').return_code == 0
assert delegator.run('pipenv lock').return_code == 0
assert delegator.run('pipenv update --dev --dry-run').return_code == 0
# Test uninstalling a package after locking.
assert delegator.run('pipenv uninstall Werkzeug').return_code == 0