Internet Sabotage
Python package to simulate internet failures for testing purposes.
This fork fix error in original repository. The library is working at 100%.
Installation
$ pip install internet-sabotage3
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