From 796ac6d39f01020a0afb8f95f54e1ada153b03b7 Mon Sep 17 00:00:00 2001 From: gahusb Date: Fri, 12 Jun 2026 00:48:58 +0900 Subject: [PATCH] =?UTF-8?q?test(agent-office):=20test=5Finit=5Fand=5Fseed?= =?UTF-8?q?=20stale=20=EB=8B=A8=EC=96=B8=20=EC=88=98=EC=A0=95=20(=EA=B3=A0?= =?UTF-8?q?=EC=A0=95=20=EA=B0=9C=EC=88=98=E2=86=92subset)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 에이전트 레지스트리가 2→7로 늘어 len==2/{stock,music} 고정 단언이 stale였음. 핵심 시드 subset 검증으로 변경(레지스트리 확장에 견고). 이번 세션 audit에서 반복 플래그된 부채. Co-Authored-By: Claude Opus 4.8 (1M context) --- agent-office/app/test_db.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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")