fix tests: isolated HOME
CI / Check formatting (push) Successful in 24s
CI / Type check (push) Successful in 1m42s
CI / Tests (push) Successful in 19s
CI / Docs (push) Successful in 31s
CI / Build (ubuntu-22.04) (push) Failing after 51s
CI / Build (windows-latest) (push) Canceled after 0s

This commit is contained in:
ars
2026-06-25 13:52:48 +03:00
parent 44509dd4db
commit 8bbbc4ca67
+1
View File
@@ -359,6 +359,7 @@ def test_run_once_sends_previous_command_result() -> None:
def test_main_returns_non_zero_for_missing_config(monkeypatch, caplog, tmp_path) -> None:
monkeypatch.chdir(tmp_path)
monkeypatch.delenv("XDG_CONFIG_HOME", raising=False)
monkeypatch.setenv("HOME", str(tmp_path / "home"))
exit_code = main([])