Skip to content

Commit

Permalink
fix my new test
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius authored and oz123 committed Nov 5, 2024
1 parent 8b3a057 commit 95f3af1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/integration/test_install_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,10 +799,11 @@ def test_install_respects_lockfile_versions(pipenv_instance_pypi):
c = p.pipenv("graph --json")
assert c.returncode == 0

import json
graph_data = json.loads(c.stdout)
for package in graph_data:
if package["package"] == "sh":
assert package["version"] == "1.14.1"
for entry in graph_data:
if entry["package"]["package_name"] == "sh":
assert entry["package"]["installed_version"] == "1.14.1"
break
else:
pytest.fail("sh package not found in graph output")

0 comments on commit 95f3af1

Please sign in to comment.