A plugin for nosetests that disables network access
Project description
Simplest possible nose plugin to disable network access during tests.
Installation
pip install nose-no-network
Usage
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nose-no-network-0.0.1.tar.gz
(2.7 kB
view details)
File details
Details for the file nose-no-network-0.0.1.tar.gz.
File metadata
- Download URL: nose-no-network-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cf1fc58c7a9ec7819d2a00a24d413f1ff0cbdc8cc44c7ccb7260e0c8f612654
|
|
| MD5 |
13246cb76f7fd9967abdc879975f7302
|
|
| BLAKE2b-256 |
de871e90d0e0d60737c47bd17eb46e4049173230355a9cc2ca99987b9154d7cc
|