File size: 403 Bytes
aef804e
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
"""
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.
"""