Skip to content

Commit

Permalink
Clean up serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Nov 20, 2024
1 parent a312abb commit 47b4fb7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/integration_python/test_run_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,10 @@ def test_run_with_activation(pixi: Path, tmp_path: Path) -> None:
)

# Modify the environment variable in cache
cache_path = tmp_path.joinpath(".pixi/activation-env-v0/activation_default.json")
with cache_path.open("r") as f:
data = json.load(f)
data = json.loads(json.dumps(data).replace("test123", "test456"))
with cache_path.open("w") as f:
json.dump(data, f, indent=4)
cache_path = tmp_path.joinpath(".pixi", "activation-env-v0", "activation_default.json")
data = json.loads(cache_path.read_text())
data["environment_variables"]["TEST_ENV_VAR_FOR_ACTIVATION_TEST"] = "test456"
cache_path.write_text(json.dumps(data, indent=4))

verify_cli_command(
[pixi, "run", "--manifest-path", manifest, "task"],
Expand Down

0 comments on commit 47b4fb7

Please sign in to comment.