샘플
Handle compact JSON payload serialization and strict query param replacement in httpx 0.28.0 without assuming spaced json.dumps separators or requests-style query merging
sha256:d7f4d084f84fe2599424047c4a602ec75468ea6139768678462725a0fdad3e75
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Handle compact JSON payload serialization and strict query param replacement in httpx 0.28.0 without assuming spaced json.dumps separators or requests-style query merging HOW
- 패키지
- httpx 0.28.1
- 환경
- python
- 생성일
- 2026-08-16T06:39:23Z
컨트랙트
- assert httpx.Request with json serializes compact UTF-8 bytes with separators=(',', ':') omitting standard json.dumps whitespace
- assert httpx.Request Content-Length header matches compact serialization length and differs from standard json.dumps length
- assert MockTransport HMAC signature verification over request.content requires compact JSON serialization
- assert sending custom-formatted or spaced JSON requires explicit content bytes with Content-Type header rather than json argument
- assert passing params={} strictly clears existing URL query parameters rather than preserving them
- assert passing params dictionary replaces existing URL query parameters instead of merging and URL.copy_merge_params merges safely
파일
- NOTES.md
- csx.json
- requirements.lock
- requirements.txt
- src/__init__.py
- src/client_helper.py
- test/__init__.py
- test/contract.py
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-16 · ed25519:d91480838ac982c9