diff --git a/agent-office/app/test_db.py b/agent-office/app/test_db.py index 08ebcab..3dd7885 100644 --- a/agent-office/app/test_db.py +++ b/agent-office/app/test_db.py @@ -18,9 +18,11 @@ from app.db import ( def test_init_and_seed(): init_db() agents = get_all_agents() - assert len(agents) == 2, f"Expected 2 agents, got {len(agents)}" ids = {a["agent_id"] for a in agents} - assert ids == {"stock", "music"}, f"Unexpected agent ids: {ids}" + # 시드된 핵심 에이전트 존재 검증 — 레지스트리 확장(insta/lotto/realestate/youtube 등)에 견고하도록 + # 고정 개수/집합이 아닌 subset으로 단언 (이전 len==2/{stock,music} 고정 단언은 stale였음). + assert {"stock", "music"} <= ids, f"core agents missing: {ids}" + assert len(agents) >= 2 print(" [PASS] test_init_and_seed")