From 2884f6afc7c923322915443daf0e35a4f57a4024 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Tue, 2 Jun 2026 07:48:43 +0800 Subject: [PATCH] auto-sync: 2026-06-02 07:48:43 --- tests/test_four_phase_unit.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/test_four_phase_unit.py b/tests/test_four_phase_unit.py index 2a85a6e..cdc6aac 100644 --- a/tests/test_four_phase_unit.py +++ b/tests/test_four_phase_unit.py @@ -509,7 +509,10 @@ class TestU10ReviewPrompt: description="这是目标描述") parent_task = bb.get_task("parent") - ticker = Ticker(registry=MagicMock()) + mock_spawner = MagicMock() + mock_spawner.api_host = "127.0.0.1" + mock_spawner.api_port = 8083 + ticker = Ticker(registry=MagicMock(), spawner=mock_spawner) summary = {"done": 2, "failed": 1, "cancelled": 0, "total": 3} prompt = ticker._build_review_prompt( @@ -527,7 +530,10 @@ class TestU10ReviewPrompt: description="目标") parent_task = bb.get_task("parent") - ticker = Ticker(registry=MagicMock()) + mock_spawner = MagicMock() + mock_spawner.api_host = "127.0.0.1" + mock_spawner.api_port = 8083 + ticker = Ticker(registry=MagicMock(), spawner=mock_spawner) summary = {"done": 1, "failed": 2, "cancelled": 0, "total": 3} prompt = ticker._build_review_prompt(