mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
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:
+1
-1
@@ -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']
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user