Skip to content

Commit 95f3af1

Browse files
matteiusoz123
authored andcommitted
fix my new test
1 parent 8b3a057 commit 95f3af1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/integration/test_install_basic.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -799,10 +799,11 @@ def test_install_respects_lockfile_versions(pipenv_instance_pypi):
799799
c = p.pipenv("graph --json")
800800
assert c.returncode == 0
801801

802+
import json
802803
graph_data = json.loads(c.stdout)
803-
for package in graph_data:
804-
if package["package"] == "sh":
805-
assert package["version"] == "1.14.1"
804+
for entry in graph_data:
805+
if entry["package"]["package_name"] == "sh":
806+
assert entry["package"]["installed_version"] == "1.14.1"
806807
break
807808
else:
808809
pytest.fail("sh package not found in graph output")

0 commit comments

Comments
 (0)