全部搜索项
trixie  ] [  sid  ]
[ 源代码: pytest-httpx  ]

软件包:python3-pytest-httpx(0.35.0-1)

python3-pytest-httpx 的相关链接

Screenshot

Debian 的资源:

下载源码包 pytest-httpx

维护小组:

外部的资源:

相似软件包:

Intercept and mock HTTPX requests in pytest

Provides an `httpx_mock` fixture for the pytest framework. This fixture allows you to intercept and mock HTTP requests made using the HTTPX library. It supports both synchronous and asynchronous HTTPX requests, enabling you to define custom responses, including JSON bodies, headers, status codes, and more.

This library is useful for testing scenarios where making actual network calls is not feasible or desired. You can simulate various HTTP responses and conditions, ensuring your code handles them correctly. Additionally, pytest-httpx supports dynamic responses via callbacks, request verification, and partial mocking, allowing specific requests to go through unmocked.

Ideal for developers needing to test HTTP interactions in their applications without relying on external services.

其他与 python3-pytest-httpx 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • 增强

下载 python3-pytest-httpx

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 29.5 kB105.0 kB [文件列表]