Skip to content
Sharp

HTTP Integration · interview question

If you wrote a test around timeouts and retries, what should the test prove first?

Multiple choiceMediumchapter-12-curatedpremiumhttp-integrationtimeouts-and-retries
python
def call_partner(client: httpx.Client) -> dict:
    response = client.get("/orders", timeout=5.0)
    response.raise_for_status()
    return response.json()
Choose one answer
Answer and explanation

Correct answer

D. That the rule behaves correctly at the boundary cases the lesson is trying to make explicit.

Why

Good tests make the design safer to change because they lock in the meaningful behavior rather than surface-level implementation details.

Test yourself on HTTP Integration

A free test with instant, explained results. No account needed.

Start free test
All HTTP Integration questions →