Skip to main content

pytest-httpx-blockage

pypi versions

Package disables requests during pytest execution for HTTPX

If request occurs, RequestBlockageException will be raised.

Installation

pip install pytest-httpx-blockage
  • Pass param --blockage-httpx to enable blockage.

Configuration

By default, blockage will be disabled in tests marked as integration. You can override it using --disable-blockage-mark=new_mark.

All settings can be stored in your .cfg file, with the same variable names as the argument names mentioned under usage:

blockage-httpx=true
disable-blockage-mark=new_mark

Release files for pytest-httpx-blockage 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-httpx-blockage 0.0.8
File Size Uploaded
pytest-httpx-blockage-0.0.8.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-httpx-blockage 0.0.8
File Interpreter ABI Platform
pytest_httpx_blockage-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / pytest-httpx-blockage-0.0.8.tar.gz

Download URL pytest-httpx-blockage-0.0.8.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c0eac96c806ab4c7842716bf13a15aa5846e4ddda87e810c8f0c7d91561e2c6d
BLAKE2b-256 checksum
How to use checksums
735c330fa2d41d76f63b66a3f629da3aa04426953f988ccfbeb844f4d72fe836
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / pytest_httpx_blockage-0.0.8-py3-none-any.whl

Download URL pytest_httpx_blockage-0.0.8-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7dbeea3005580a01e7a645784d6d12ba21c394c1f4307b7a6d2d382e693eaab7
BLAKE2b-256 checksum
How to use checksums
851349b0b11e681e10e23fa6ef6a3b872af7df7dc543f7dcd850b4dc37420819
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page