pytest-httpx

JSON →
library 0.36.0 ·python
verified May 20, 2026

pytest-httpx is a pytest fixture that provides a convenient way to mock HTTPX requests within test cases. It supports both synchronous and asynchronous HTTPX requests, allowing developers to define custom responses, status codes, headers, and simulate various HTTP conditions without making actual network calls. The library is currently at version 0.36.0 and is considered stable, with version 1.0.0 planned for release once HTTPX itself reaches 1.0.0.

total hits 12
actors 4 distinct systems
last hit 1d ago GPTBot
GPTBot
6
Script
3
ClaudeBot
1

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · 🇮🇳 India