techprotrade's picture
Deploy ATOM FastAPI command center runtime (part 8)
aef804e verified
Raw
History Blame Contribute Delete
403 Bytes
"""
API Contract Property-Based Tests
Tests API contract invariants using Hypothesis:
- Malformed JSON handling (returns 400/422, not 500)
- Oversized payload rejection (returns 413, not OOM/crash)
- Response schema validation (conforms to OpenAPI)
- API contract fuzzing for robustness
These tests prevent crashes from malformed input and ensure
API responses conform to contract specifications.
"""