feat: route extended real case e2e domains
This commit is contained in:
@@ -29,6 +29,21 @@ def test_unified_consultation_orchestrator_routes_health_questions() -> None:
|
||||
assert "non-medical boundary" in route["focus_techniques"]
|
||||
|
||||
|
||||
def test_unified_consultation_orchestrator_routes_extended_product_domains() -> None:
|
||||
orchestrator = UnifiedConsultationOrchestrator()
|
||||
cases = [
|
||||
("海外迁移 relocation", ["migration"], "migration", "D12"),
|
||||
("家庭子女 home children", ["family"], "family", "D7"),
|
||||
("教育学习 school degree", ["education"], "education", "D24"),
|
||||
("今年年度运势 annual forecast", ["annual"], "annual", "Tajika candidate"),
|
||||
]
|
||||
for question, raw_themes, expected_route, expected_layer in cases:
|
||||
themes = orchestrator.normalize_themes(raw_themes)
|
||||
route = orchestrator.resolve_route(question, themes)
|
||||
assert route["question_type"] == expected_route
|
||||
assert expected_layer in route["focus_techniques"]
|
||||
|
||||
|
||||
def test_unified_consultation_orchestrator_exposes_surface_agnostic_contract() -> None:
|
||||
orchestrator = UnifiedConsultationOrchestrator()
|
||||
route = orchestrator.resolve_route("When will I marry?", ["marriage"])
|
||||
|
||||
Reference in New Issue
Block a user