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
…though the plugin is 32 lines of code, consider vendoring it.
See test_example.py for usage.
Metadata
Release files for pytest-subtesthack 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pytest-subtesthack-0.2.0.tar.gz | 2.6 kB | Without provenance | Details |
Release files / pytest-subtesthack-0.2.0.tar.gz
| Download URL | pytest-subtesthack-0.2.0.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebb504203c9c01fdd379d2afa747687dcb7b1ed1be1fc0c3f539b2de81276200
|
|
BLAKE2b-256 checksum How to use checksums |
ddf300d45229d7dbd7ec42c30cd3208842200306a7737050f0160eec34da72cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.8
|
Security for pytest-subtesthack 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.