refactor(auth): popup API 리뷰 개선 + 무토큰 테스트 보강

원작성자 컨벤션 대조 리뷰 반영.

- README 엔드포인트 표에 logout·popup/status·popup/hide 추가(누락분 포함)
- user_crud: get_hide_service_info 의 불필요한 bool() 캐스트 제거
  (execute 가 단일 컬럼 select 에서 이미 스칼라 반환 — get_supplier_name 과 동일)
- account: popup 라우터를 me 뒤로 이동(로그인→계정→토큰→내정보→팝업 흐름)
- test_auth: test_popup_hide_without_token 추가(me 섹션과 무토큰 가드 대칭)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
민헌andClaude Fable 5 committed 2026-07-07 14:36:37 +09:00
1 parent 3c8923c075
commit 3b1719666f
4 files changed
+23 -15

No files matched your search

+5
View File
@@ -371,3 +371,8 @@ async def test_popup_hide_invalid_type(client, account_seed):
async def test_popup_status_without_token(client):
r = await client.get("/v1/auth/popup/status")
assert r.status_code in (401, 403)
async def test_popup_hide_without_token(client):
r = await client.post("/v1/auth/popup/hide", json={"popup_type": "service_info"})
assert r.status_code in (401, 403) # HTTPBearer 가 자격증명 없음을 거부