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.


pip install pytest-subtesthack

See 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.

Source Distribution

pytest-subtesthack-0.1.2.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

pytest_subtesthack-0.1.2-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

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