"""T3.10 里程碑动态管理测试。 测试 AI 里程碑 Agent 的路径切换建议。 """ import pytest from app.services.milestone_agent import suggest_path_switch class TestSuggestPathSwitch: """里程碑路径切换测试。""" async def test_returns_dict(self): """返回路径切换建议字典。""" result = await suggest_path_switch( "当前里程碑:产品上线 → 获取 1000 用户 → A 轮融资", "竞品提前上线,市场窗口缩小", ) assert isinstance(result, dict) async def test_empty_input(self): """空输入返回默认结构。""" result = await suggest_path_switch("", "") assert isinstance(result, dict)