Fix test error

This commit is contained in:
Frost Ming
2021-11-04 18:33:43 +08:00
parent 10554c1c7d
commit 30e2aac739
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -2642,7 +2642,7 @@ def do_check(
raise exceptions.JSONParseError(c.stdout, c.stderr)
except Exception:
raise exceptions.PipenvCmdError(cmd_list_to_shell(c.args), c.stdout, c.stderr, c.returncode)
for (package, resolved, installed, description, vuln) in results:
for (package, resolved, installed, description, vuln, *_) in results:
click.echo(
"{}: {} {} resolved ({} installed)!".format(
crayons.normal(vuln, bold=True),
+2 -1
View File
@@ -142,7 +142,8 @@ def test_pipenv_graph_reverse(PipenvInstance):
@flaky
def test_pipenv_check(PipenvInstance):
with PipenvInstance() as p:
p.pipenv('install requests==1.0.0')
c = p.pipenv('install requests==1.0.0')
assert c.returncode == 0
c = p.pipenv('check')
assert c.returncode != 0
assert 'requests' in c.stdout