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
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:
@@ -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([])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user