Skip to content

Use mock-response-delay for the response delay and timeout simulation - #3564

Merged
adamtheturtle merged 2 commits into
mainfrom
adamtheturtle/extract-issue-3415-new-repo
Sep 7, 2026
Merged

adamtheturtle merged 2 commits into
mainfrom
adamtheturtle/extract-issue-3415-new-repo

Conversation

@adamtheturtle

Copy link
Copy Markdown
Member

Closes #3415.

The response delay and client timeout simulation for requests (via responses), httpx (via respx) and httpx2 now comes from the new mock-response-delay package, which was extracted from this repository.

The three mock backends now only convert requests to RequestData and responses back; the wrapping which compares the delay with the read timeout, sleeps through sleep_fn, and raises requests.exceptions.Timeout, httpx.ReadTimeout or httpx2.ReadTimeout is done by the package.

uv.lock is not yet updated because the package has not yet been released to PyPI. Once the first release is out, run uv lock and push.

🤖 Generated with Claude Code

The delay and client timeout logic for requests, httpx and httpx2 now
lives in https://github.com/adamtheturtle/mock-response-delay.

Closes #3415.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extract the response delay and timeout simulation into a library

1 participant