pytest-httpx-blockage
Package disables requests during pytest execution for HTTPX
If request occurs, RequestBlockageException will be raised.
Installation
- Install
pytest-httpx-blockage(or download from PyPI):
pip install pytest-httpx-blockage
- Pass param
--blockage-httpxto 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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest-httpx-blockage-0.0.8.tar.gz | 4.6 kB | Without provenance | Details for pytest-httpx-blockage-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_httpx_blockage-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for pytest_httpx_blockage-0.0.8-py3-none-any.whl |
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
|
Security for pytest-httpx-blockage 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.