pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/SlavaSkvortsov/pytest-httpx-blockage

gin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-9e07ff8eaaaff3a3.css" /> GitHub - SlavaSkvortsov/pytest-httpx-blockage: Block requests in tests for httpx · GitHub
Skip to content

SlavaSkvortsov/pytest-httpx-blockage

Repository files navigation

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

About

Block requests in tests for httpx

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy