全部搜尋項
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 [檔案列表]