Skip to content

Commit cc86465

Browse files
author
Mateusz
committed
Fix DEFAULT_INTERACTIVE_MODE environment variable pollution
Add cleanup for DEFAULT_INTERACTIVE_MODE in test_cli_di.py to prevent test pollution that was causing config persistence test to fail.
1 parent 834b529 commit cc86465

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/unit/test_cli_di.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ def test_cli_redaction_flag(monkeypatch: pytest.MonkeyPatch) -> None:
117117
cfg = cfg[0]
118118
assert os.environ["DEFAULT_INTERACTIVE_MODE"] == "false"
119119
assert cfg.session.default_interactive_mode is False
120+
# Clean up to prevent test pollution
121+
monkeypatch.delenv("DEFAULT_INTERACTIVE_MODE", raising=False)
120122

121123

122124
def test_cli_force_set_project(monkeypatch: pytest.MonkeyPatch) -> None:

0 commit comments

Comments
 (0)