Skip to content

Commit

Permalink
Set cache dir in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Dec 5, 2024
1 parent 97f6179 commit 406fae1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integration_python/pixi_build/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ def test_source_change_trigger_rebuild(
) -> None:
test_data = build_data.joinpath("simple-pyproject")

# TODO: Setting the cache dir shouldn't be necessary!
env = {"PIXI_CACHE_DIR": str(tmp_pixi_workspace.joinpath("pixi_cache"))}

target_dir = tmp_pixi_workspace.joinpath("simple-pyproject")
shutil.copytree(test_data, target_dir)
manifest_path = target_dir.joinpath("pyproject.toml")
Expand All @@ -103,6 +106,7 @@ def test_source_change_trigger_rebuild(
"get-version",
],
stdout_contains="The version of simple-pyproject is 1.0.0",
env=env,
)

# Bump version from 1.0.0 to 2.0.0
Expand All @@ -119,4 +123,5 @@ def test_source_change_trigger_rebuild(
"get-version",
],
stdout_contains="The version of simple-pyproject is 2.0.0",
env=env,
)

0 comments on commit 406fae1

Please sign in to comment.