Skip to content

[26 - Stack 5/5] Step2 V2 API 계약 검증 추가#31

Open
tomchaccom wants to merge 1 commit into
AI/feat/26-04-step2-v2-apifrom
AI/test/26-05-step2-v2-contract
Open

[26 - Stack 5/5] Step2 V2 API 계약 검증 추가#31
tomchaccom wants to merge 1 commit into
AI/feat/26-04-step2-v2-apifrom
AI/test/26-05-step2-v2-contract

Conversation

@tomchaccom

Copy link
Copy Markdown
Collaborator

관련 이슈

작업내용

  • 독립 FastAPI 테스트 앱으로 Step2 V2 multipart 계약 검증
  • Spring 요청 필드와 응답 병합 형식 검증
  • 경험 추출 사용자 흐름 문서에 V2 계약 반영

테스트

  • url, selected_experiences, existing_experiences, preset_schemas 파싱
  • Spring 응답 DTO와 호환되는 병합 필드 반환
  • 잘못된 Preset JSON 요청 400
  • 선택 경험과 Preset 그룹 불일치 400
  • LLM과 임베딩을 fake 함수로 대체해 네트워크 호출 제거

테스트 결과

PYTHONPYCACHEPREFIX=/tmp/pickd-pycache \
.venv/bin/python -m unittest discover -s tests
  • 13개 테스트 통과

Stack 관계

  • Previous: [26 - Stack 4/5] 경험 추출 Step2 V2 API 추가
  • Final Stack: 5/5

- Spring multipart 요청과 응답 형식 검증
- 잘못된 Preset JSON과 스키마 불일치 검증
@tomchaccom tomchaccom marked this pull request as ready for review June 22, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant