Internet Sabotage
Python package to simulate internet failures for testing purposes.
Instalation
$ pip install internet-sabotage
Usage
from internet_sabotage import no_connection
with no_connection():
response = requests.get('http://httpbin.org/ip')
or
from internet_sabotage import no_connection
@no_connection
def test_something():
pass
License
MIT
Metadata
Release files for internet-sabotage 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| internet-sabotage-0.1.2.tar.gz | 2.3 kB | Details |
Release files / internet-sabotage-0.1.2.tar.gz
| Download URL | internet-sabotage-0.1.2.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5a61c9e769cff76a5f1112eefecaee57c28d5152a3ed88e10c3b57e6f1d0113
|
|
BLAKE2b-256 checksum How to use checksums |
81366d383b6d42eae8458762a81e1466887642ad6c9cb2f15cb53b08b0d4be6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |