Skip to main content

Disable network requests during a test run.

Project description

Disable network requests during a test run.

Based mainly on https://github.com/andymckay/nose-blockage; source is available at https://github.com/rob-b/pytest-blockage

Installation

The plugin can be installed via pypi:

$ pip install pytest-blockage

Usage

To activate the plugin the --blockage parameter should be passed. e.g.:

$ py.test package --blockage

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-blockage-0.2.0.tar.gz (1.9 kB view details)

Uploaded Source

File details

Details for the file pytest-blockage-0.2.0.tar.gz.

File metadata

File hashes

Hashes for pytest-blockage-0.2.0.tar.gz
Algorithm Hash digest
SHA256 bc5973bcb787b8dd3572a5c7966edf725f13fc891039cbe872bbb917be5b6ffb
MD5 c21cd5685c13fe639cee1cbbb1f713bc
BLAKE2b-256 eed028319209a158fbdf0deb548c70e13621ac811ca211e932b7b610200084bb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page