mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user