We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 150b546 commit 125299eCopy full SHA for 125299e
1 file changed
tests/conftest.py
@@ -28,6 +28,12 @@ def reset_color_envvars(monkeypatch: pytest.MonkeyPatch) -> None:
28
monkeypatch.delenv("NO_COLOR", raising=False)
29
30
31
+@pytest.fixture(autouse=True)
32
+def clear_cache(monkeypatch: pytest.MonkeyPatch) -> None:
33
+ """Clear the cache for each test."""
34
+ monkeypatch.setattr("nox.registry._REGISTRY", {})
35
+
36
37
RESOURCES = Path(__file__).parent.joinpath("resources")
38
39
0 commit comments