From 5036d2de23d709edfb0ffc1dea3d9a2a70473941 Mon Sep 17 00:00:00 2001 From: himanshupatro-334 Date: Fri, 25 Sep 2026 18:13:22 +0530 Subject: [PATCH] test: isolate PR default branch detection --- tests/test_prs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_prs.py b/tests/test_prs.py index 1e81527df..93e69a404 100644 --- a/tests/test_prs.py +++ b/tests/test_prs.py @@ -727,6 +727,7 @@ class TestCmdPrsDetail: pr_99 = make_pr(number=99, branch="feat-99", base_branch="v8", expected_base="v8") with patch("graphify.prs.fetch_prs", return_value=prs_50), \ + patch("graphify.prs._detect_default_branch", return_value="v8"), \ patch("graphify.prs.fetch_worktrees", return_value={"feat-99": "/path/to/wt"}), \ patch("graphify.prs.fetch_pr", return_value=pr_99) as mock_fetch_single, \ patch("graphify.prs.fetch_pr_files", return_value=["src/app.py"]):