codejump

Overrides & Test Isolation — Series 3

Preview — 3 of 10 questions

A route accepts limit from the query. Which pair best tests the boundary?

AAn allowed limit and a value above the maximum
BTwo identical allowed limits only
CA GET and a DELETE on unrelated paths
DOnly an empty database

A test checks a 401 response from an endpoint requiring a bearer token. What request should it send?

AA request with a valid user override only
BA request without a valid credential
CA request to /openapi.json instead
DA request that bypasses the route

Why can a test that mocks the entire route function miss a FastAPI validation bug?

AIt always creates a database row
BIt automatically tests all errors
CIt bypasses routing and request parsing behavior
DIt rewrites the application startup

Sign up free to play

Answer all 10 questions (7 more), see explanations for every answer, and track your score.