Skip to content

Commit

Permalink
Add comment in test
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Feb 26, 2025
1 parent a43599f commit 8af8765
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ def test_no_pip_but_pypi_packages(tmp_path: Path) -> None:
with open(PIXI_LOCK_PYPI_PATH) as f:
data = yaml.safe_load(f)

# Remove e.g., https://conda.anaconda.org/conda-forge/noarch/pip-25.0.1-pyh145f28c_0.conda
for env, env_data in data["environments"].items():
for platform, package_data in env_data["packages"].items():
remove = []
Expand All @@ -303,6 +304,7 @@ def test_no_pip_but_pypi_packages(tmp_path: Path) -> None:
remove.append(i)
for i in reversed(remove):
del data["environments"][env]["packages"][platform][i]

new_lock_path = tmp_path / "pixi.lock"
with open(new_lock_path, "w") as f:
yaml.safe_dump(data, f)
Expand Down

0 comments on commit 8af8765

Please sign in to comment.