Skip to content

Commit

Permalink
Update README and setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dvl committed Apr 14, 2016
1 parent 6b68188 commit 330874f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
38 changes: 34 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,36 @@
# Usage
Internet Sabotage
=================

from internet_sabotage import no_connection
Python package to simulate internet failures for testing purposes.

with no_connection():
response = requests.get('http://httpbin.org/ip')
Instalation
-----------

.. code:: shell
$ pip install internet-sabotage
Usage
-----

.. code:: python
from internet_sabotage import no_connection
with no_connection():
response = requests.get('http://httpbin.org/ip')
or

.. code:: python
from internet_sabotage import no_connection
@no_connection
def test_something():
pass
License
-------

MIT
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name='internet-sabotage',
version='0.1.0',
version='0.1.2',
description='Disable network connection for Testing',
long_description=long_description,
author='André Luiz',
Expand Down

0 comments on commit 330874f

Please sign in to comment.