Skip to content

docs: compare pytest-httpx with RESPX - #244

Merged
Colin-b merged 3 commits into
Colin-b:developfrom
Ehsan-hash:fix/document-respx-differences
Oct 19, 2026
Merged

Colin-b merged 3 commits into
Colin-b:developfrom
Ehsan-hash:fix/document-respx-differences

Conversation

@Ehsan-hash

@Ehsan-hash Ehsan-hash commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Closes #7.

Compare fixture setup, request matching, response reuse and request inspection with RESPX. Examples show returning a response without checking the request, and matching request content when registering a response. The comparison links both libraries' configuration options and sits after the migration sections.

Checked with HTTPX 0.28.1 and RESPX 0.23.1: all four README examples and ten other behavior checks pass, including rejection of incorrect request content. The existing 346 tests pass with 100% coverage, and the applicable README pre-commit checks pass. Independent read-only review completed before pushing this revision.

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
@sonarqubecloud

Copy link
Copy Markdown

@Colin-b

Colin-b commented Oct 19, 2026

Copy link
Copy Markdown
Owner

Thanks a lot @Ehsan-hash
I might update it in the future to have something more exhaustive in terms of features and default behavior.
That is a great start anyway!

@codecov

codecov Bot commented Oct 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (99c058e) to head (ddda6ff).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##           develop      #244   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            7         7           
  Lines          366       366           
  Branches        69        69           
=========================================
  Hits           366       366           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@Colin-b
Colin-b merged commit 39ccbe0 into Colin-b:develop Oct 19, 2026
9 checks passed
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.

Document differences with respx

2 participants