Skip to content

dvl/python-internet-sabotage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages