fix(tests): gate diff-base parentless test stubs the head-rung resolver

The env-ladder change makes a parentless root consult the project head
rung before string derivation; on a bare AsyncMock the resolver probe
auto-materializes and returns a truthy mock. Stub it to None so the test
exercises the no-project string-derivation fallback its name promises,
matching test_merge_chain's pattern.
This commit is contained in:
Renn F
2026-07-18 17:03:10 +02:00
parent b0dcb03356
commit f89d01ad08
@@ -86,6 +86,7 @@ class TestGateDiffParent:
async def test_parentless_root_falls_back_to_string_derivation(self) -> None:
t = _gate_task(branch_name="feature/main_pm/f7d0a61a", parent_task_id=None)
task_service = AsyncMock()
task_service.project_default_branch_for_task = AsyncMock(return_value=None)
c = _make_choreographer(task_service=task_service, git=AsyncMock())
parent = await c._gate_diff_parent(t)