From 4b48be7e8187f9eea41342a453d1f2cb52a08685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AF=BC=ED=97=8C?= Date: Tue, 29 Sep 2026 15:13:44 +0900 Subject: [PATCH] =?UTF-8?q?[chore]=20solution/backend:=20=EC=97=90?= =?UTF-8?q?=EC=9D=B4=EC=A0=84=ED=8A=B8=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=EC=9D=98=20=EC=A3=BD=EC=9D=80=20=EB=8F=84=EC=9A=B0=EB=AF=B8=20?= =?UTF-8?q?user=5Fof=20=EC=82=AD=EC=A0=9C=20=E2=80=94=20=EC=97=86=EB=8A=94?= =?UTF-8?q?=20=ED=95=A8=EC=88=98=EB=A5=BC=20import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit user_of 는 처음 들어온 커밋(b1a34ba)부터 한 번도 호출되지 않았고, import 하는 decode_access_token 은 어느 브랜치 기록에도 정의된 적이 없다 — 부르는 순간 ImportError 다. 같은 일은 DecodeAccessToken 을 쓰는 _sections 가 이미 한다. - tests/test_agent_runtime.py: user_of 삭제(호출처 0 — 레포 전체·문자열 참조까지 확인) pyflakes 경고 없음, test_agent_runtime 84 passed Co-Authored-By: Claude Opus 5.5 --- solution/backend/tests/test_agent_runtime.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/solution/backend/tests/test_agent_runtime.py b/solution/backend/tests/test_agent_runtime.py index 2c7aec6..2f4e7dd 100644 --- a/solution/backend/tests/test_agent_runtime.py +++ b/solution/backend/tests/test_agent_runtime.py @@ -37,16 +37,6 @@ async def seed(client, auth_headers, name="대화숙소"): return h, res.json()["place"]["place_id"] -async def user_of(client, headers, place_id): - """라우터를 거치지 않고 런타임을 직접 부르기 위한 UserInfo.""" - me = (await client.get("/v1/place", headers=headers)).json() - del me - from router.v1.validator.dependencies import decode_access_token - - token = headers["Authorization"].split(" ", 1)[1] - return decode_access_token(token) - - # ── 1. 게이트가 살아 있다 ──────────────────────────────────────────────── def test_모든_도구는_서비스_계층을_통과한다():