pytest integration tests with response shape validation #3
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/woodpecker-sdk#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Plan
plan-2026-02-28-woodpecker-sdk-mcp— Phase 1 follow-upRepo
woodpecker-sdkUser Story
As an SDK consumer
I need integration tests that validate response shapes from every endpoint
So that I can trust the SDK returns correct, typed data and catch API regressions early
Acceptance Criteria
When I run
pytest tests/against a live Woodpecker instanceThen every endpoint test validates required fields, field types, nested object structure, and list vs dict response shapes
Additional Information
Current tests are smoke-level (assert isinstance). Upgrade to validate response schemas from swagger.json — field presence, types, constraints. See pal-e-docs
issue-woodpecker-sdk-integration-testsfor full details and example patterns.Checklist
Related
claude-config— projectplan-2026-02-28-woodpecker-sdk-mcp— parent planissue-woodpecker-sdk-integration-tests— pal-e-docs issue