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.
Source Distribution
Built Distribution
Close
Hashes for pytest_subtesthack-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8b494af34ff3593dc6c8dbcdc7f330b0530bcc51c5db47a898dc3c21eea747e |
|
MD5 | c21614ac975f2d5ddd113a3b3cf2eab9 |
|
BLAKE2b-256 | 2e8918a445e8f74284e9da0f44b423e45b9f04974e7c524c885420170854534d |