Skip to main content

A hack to explicitly set up and tear down fixtures.

Project description

A hack to explicitly set up and tear down fixtures.

This terrible plugin allows you to set up and tear down fixtures within the test function itself. This is useful (necessary!) for using Hypothesis inside py.test, as hypothesis will call the test function multiple times, without setting up or tearing down fixture state as is normally the case.

Installation:

pip install pytest-subtesthack

See test_example.py for usage.

Project details


Download files

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

Files for pytest-subtesthack, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pytest_subtesthack-0.1.1-py3-none-any.whl (3.2 kB) File type Wheel Python version 3.5 Upload date Hashes View
Filename, size pytest-subtesthack-0.1.1.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page