fix(시험): test_302_2 가짜 풀 — 예정노선 지정 조회에 빈 줄
- 까닭: 528 공유 판정이 require_project_access 에 plan_route_assignees 조회를 더함 · 가짜 풀이 모든 fetchone 에 회사 줄을 돌려 「지정받은 회사」로 읽힘 → 남의 회사 GET 200 - 코드 구멍 아님 — 진짜 서버(8001) 회사 3 계정: 남 회사 GET 403 · 미지정 예정노선 403 · 지정 예정노선 GET 200 · PUT 403 - 공유 판정 지킴 시험은 test_528 에 있음(지정 GET 200 · PUT 403 · 미지정 403) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -219,11 +219,12 @@ class _FakePool:
|
||||
async def __aexit__(self, *_):
|
||||
return False
|
||||
|
||||
async def execute(self, *_):
|
||||
return None
|
||||
async def execute(self, sql, *_):
|
||||
self.sql = sql
|
||||
|
||||
async def fetchone(self):
|
||||
return pool.row
|
||||
# 예정노선 지정(plan_route_assignees) 없음 — 회사 대조만 시험.
|
||||
return None if "plan_route_assignees" in self.sql else pool.row
|
||||
|
||||
class _Connection:
|
||||
async def __aenter__(self):
|
||||
|
||||
Reference in New Issue
Block a user