Fix tests
Some checks failed
CI / test (push) Successful in 50s
CI / test (almalinux, docker.io/library/almalinux:9, python3.11) (push) Failing after 2m36s
CI / test (debian, docker.io/library/debian:13, python3) (push) Failing after 3m2s
Lint / test (push) Successful in 1m15s

This commit is contained in:
Miguel Jacq 2026-06-30 11:11:38 +10:00
parent 737316d507
commit 4146aa997b
Signed by: mig5
GPG key ID: 03906B4110AAD3B8
4 changed files with 22 additions and 1 deletions

View file

@ -645,7 +645,9 @@ def test_cli_harvest_remote_sops_encrypts_and_prints_path(
assert calls.get("encrypt")
def test_cli_harvest_remote_password_required_exits_cleanly(monkeypatch):
def test_cli_harvest_remote_password_required_exits_cleanly(
tmp_path: Path, monkeypatch
):
def boom(**kwargs):
raise RemoteSudoPasswordRequired("pw required")
@ -660,6 +662,8 @@ def test_cli_harvest_remote_password_required_exits_cleanly(monkeypatch):
"example.com",
"--remote-user",
"root",
"--out",
str(tmp_path / "remote-harvest"),
],
)
with pytest.raises(SystemExit) as e: