From 57f442284f0112f6118fc96ddfa01349e0d4dd33 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Sun, 13 Apr 2025 16:28:09 +0200 Subject: [PATCH] Removed test for now --- test/test_agit.py | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 test/test_agit.py diff --git a/test/test_agit.py b/test/test_agit.py deleted file mode 100644 index 40b3fa0..0000000 --- a/test/test_agit.py +++ /dev/null @@ -1,31 +0,0 @@ -def test_push_changes(monkeypatch): - captured = {} - - 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") - branch = "feature/test-issue" - title = "Test Issue Title" - description = "Test Issue Description" - base_branch = "main" - - from aider_gitea.__main__ import push_changes - push_changes(branch, title, description, base_branch) - - expected_cmd = [ - "git", - "push", - "origin", - f"HEAD:refs/for/{base_branch}", - "-o", - f"topic={branch}", - "-o", - f"title={title}", - "-o", - f"description={description}" - ] - assert captured["cmd"] == expected_cmd