Skip to main content

Disable httpx requests during a test run

Project description


pypi versions

Package disables requests during pytest execution for HTTPX

If request occurs, RequestBlockageException will be raised.


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


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:


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-httpx-blockage-0.0.8.tar.gz (4.6 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page