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.
- Host: GitHub
- URL: https://github.com/ross/nose-no-network
- Owner: ross
- License: mit
- Created: 2021-09-02T11:45:01.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-02T11:54:46.000Z (almost 5 years ago)
- Last Synced: 2025-03-15T19:37:57.730Z (about 1 year ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)