Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Python package to simulate internet failures for testing purposes.

License

Notifications You must be signed in to change notification settings

Jalkhov/python-internet-sabotage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-sabotage2

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

Python package to simulate internet failures for testing purposes.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Python 100.0%