Catch a broken API response.
You’re testing a task API. The request succeeds, but the response breaks the contract. Find the assertion that catches it.
Sample response
GET /tasks/7
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": 7,
"title": "Write the contract test",
"completed": "false"
}
The contract says completed must be a JSON boolean.
Which assertion fails on this response?
Run the tests yourself
The Project Pack includes a local task API, a pytest suite covering authentication and response contracts, and a guided failure diagnosis you can reproduce on your own machine.
Explore the Project Pack Browse free lessons