Skip to content

감사 로그 API pagination 테스트가 실제 offset/limit을 검증하지 못하는 문제 #53

Description

@yoonki1207

작업 설명

test_users_audit_api.py에서 감사 로그 API pagination 테스트가 추가됐지만,

현재 fake _Queryoffset()limit() 값을 저장만 하고 실제 all() 결과에는 적용하지 않음

따라서 page=2, limit=10으로 호출해도 첫 번째 item이 그대로 반환되는 테스트가 통과하고 있어, 실제 pagination 회귀를 잡지 못함

pagination 동작을 실제 DB 쿼리와 동일하게 검증하도록 테스트 보완 필요

상세 작업

  • fake _Query에서 offset/limitall() 결과에 반영되도록 수정
  • 또는 실제 테스트 DB 기반으로 pagination 테스트 작성
  • page=2 요청 시 첫 페이지 결과가 반환되지 않는 케이스 검증
  • totalitems pagination 동작을 분리해서 검증

참고 사항

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

Priority

None yet

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions