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


Release history Release notifications

This version
History Node

0.1.1

History Node

0.1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pytest_subtesthack-0.1.1-py3-none-any.whl (3.2 kB) Copy SHA256 hash SHA256 Wheel 3.5 Jan 31, 2016
pytest-subtesthack-0.1.1.tar.gz (2.3 kB) Copy SHA256 hash SHA256 Source None Jan 31, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page