An open API service indexing awesome lists of open source software.

https://github.com/ross/nose-no-network

Simplest possible nose plugin to disable network access during tests.
https://github.com/ross/nose-no-network

Last synced: 10 months ago
JSON representation

Simplest possible nose plugin to disable network access during tests.

Awesome Lists containing this project

README

          

Simplest possible [nose](https://nose.readthedocs.io/en/latest/) plugin to
disable network access during tests.

## Installation

```console
pip install nose-no-network
```

## Usage

```console
nosetests --with-no-network ...
```

## How it works

nose-no-tests works by monkey patching `socket.socket` to throw an exception.

## License

nose-no-network is licensed under the MIT license.

## Authors

* [Ross McFarland](https://github.com/ross)