Skip to content

WS-D.2: backend response-shape fixtures (backend pytest + cli sync + decode tests) #291

Description

@LukasWodka

Part of epic tracebloc/backend#1106. Full spec: report §5 (mirrored on the epic; artifact https://claude.ai/code/artifact/b4b6e6a6-4d76-4e46-a668-6f4f0f944344). WS-D.2: pytest module in backend CI serializing real responses for the 9 endpoints + load-bearing error bodies (426 min_version, device-flow error enums, 403/409); scripts/sync-backend-fixtures.sh --check @ new pinned scripts/.backend-ref copying to internal/api/testdata/; Go test asserts load-bearing fields decode non-zero. Fixtures live in backend CI as plain pytest output — no backend PR ever blocks on the CLI.

Metadata

Metadata

Assignees

Labels

work-type:tech-debtRefactor / cleanup, no behavior change

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions