skip to navigation
skip to content

pytest-subtesthack 0.1.1

A hack to explicitly set up and tear down fixtures.

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.

 
File Type Py Version Uploaded on Size
pytest-subtesthack-0.1.1.tar.gz (md5) Source 2016-01-31 2KB
pytest_subtesthack-0.1.1-py3-none-any.whl (md5) Python Wheel 3.5 2016-01-31 3KB