From c4083db17ed26a5811a76f3f3e19aa0ebd488109 Mon Sep 17 00:00:00 2001 From: "Jon Michael Aanes (aider)" Date: Sun, 13 Apr 2025 16:10:13 +0200 Subject: [PATCH] test: Mock secret loading in test_push_changes to avoid failures --- test/test_agit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_agit.py b/test/test_agit.py index f3291a5..40b3fa0 100644 --- a/test/test_agit.py +++ b/test/test_agit.py @@ -4,6 +4,7 @@ def test_push_changes(monkeypatch): def fake_run_cmd(cmd, cwd=None): captured["cmd"] = cmd + monkeypatch.setattr("aider_gitea.__main__.SECRETS.load_or_fail", lambda x: "mocked_secret") monkeypatch.setattr("aider_gitea.__main__.run_cmd", fake_run_cmd) monkeypatch.setattr("aider_gitea.__main__.SECRETS.load_or_fail", lambda x: "mocked_secret")