Skip to content

Commit

Permalink
fix: remove cache dir in pixi build tests (#3116)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian authored Feb 12, 2025
1 parent 110acb9 commit e965e99
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/integration_python/test_docs_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
def test_doc_pixi_projects(
pixi_project: Path, pixi: Path, tmp_pixi_workspace: Path, snapshot: SnapshotAssertion
) -> None:
# TODO: Setting the cache dir shouldn't be necessary!
env = {"PIXI_CACHE_DIR": str(tmp_pixi_workspace.joinpath("pixi_cache"))}

# Remove existing .pixi folders
shutil.rmtree(pixi_project.joinpath(".pixi"), ignore_errors=True)

Expand All @@ -39,7 +36,7 @@ def test_doc_pixi_projects(

# Run task 'start'
output = verify_cli_command(
[pixi, "run", "--locked", "--manifest-path", manifest, "start"], env=env
[pixi, "run", "--locked", "--manifest-path", manifest, "start"],
)
assert output.stdout == snapshot

Expand Down

0 comments on commit e965e99

Please sign in to comment.