Skip to content

Commit 112acbc

Browse files
Clear cache before each test
1 parent a011b6b commit 112acbc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/unit/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ def event_loop_policy(request: pytest.FixtureRequest):
2121
return request.param
2222

2323

24+
@pytest.fixture(autouse=True)
25+
def _clear_pixi_path_cache():
26+
pixi_kernel.compatibility._pixi_path_cache = None
27+
28+
2429
@pytest.fixture
2530
def _patch_find_pixi_binary(monkeypatch: pytest.MonkeyPatch):
2631
monkeypatch.setattr(pixi_kernel.compatibility, "find_pixi_binary", lambda: Failure(None))

0 commit comments

Comments
 (0)