Cached API responses leak one user's results into another session. Build synthetic account summaries with user ID and filter parameters in the cache key.
A schema change breaks older application instances during rollout. Plan nullable field addition, backfill and later constraint change using a toy model.
A permission change exposes fields on an anonymous response. Assert separate anonymous, owner and other-user payloads for a synthetic project detail endpoint.
An endpoint accepts unexpected content or oversized files. Accept a small image fixture with explicit size and supported-format checks, then reject malformed fixtures.
A React client receives CSRF failures after login. Build a local same-origin form flow with a CSRF token and show a rejected request missing that token.
Partial updates accidentally replace fields the client never sent. Use a serializer with optional display name and nullable bio; compare omitted, null and empty string inputs.
Offset pages repeat or skip feed items during new inserts. Insert synthetic timestamped events between two page requests and inspect a stable ordering cursor.
A task observes an object before the database transaction is durable. Register an on_commit callback in a synthetic order flow and show commit and rollback outcomes.
Concurrent requests both pass the same application-level uniqueness check. Create a per-workspace unique slug constraint and show the IntegrityError path for competing inserts.
A serializer loads related records separately for every row. Create synthetic projects and owners, record query counts and compare select_related with prefetch_related.
A scheduler cannot tell an empty result from a failed run. Define documented codes for success and invalid input, then exercise the command through subprocess.