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


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.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_subtesthack-0.1.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file pytest-subtesthack-0.1.1.tar.gz.

File metadata

File hashes

Hashes for pytest-subtesthack-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3dd014a4c6e8ba98094da85811522312b02ccad974b719498bc341764b667f96
MD5 92e75213654bd7fc420d3c0129be2313
BLAKE2b-256 299f2c8ec0f42129495a89fb479a4d04c8a9762c8ec3e6f5e73b2effaaf9d3ff

See more details on using hashes here.

File details

Details for the file pytest_subtesthack-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_subtesthack-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd3e70875fdd3609babfad9d57e5b4c45b551a1e7e239109172059bedb4abc6b
MD5 a8a481baa68e8723fa576cf21cd22be0
BLAKE2b-256 cf187f522069c58690d9379a415fbc951c376022665a44b3f261d301e65445d4

See more details on using hashes here.

Supported by

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