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.0.tar.gz (1.5 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.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for pytest-subtesthack-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b80d69bff7c9e728579777b81b3359f28646310c5da8c15c27edb2c546338bce
MD5 20a453f72637bf360dc26c550075b84e
BLAKE2b-256 9c030883e0ad783a66cf027eb88e813b7ab9c1f3a9bda9898a17476b8ecab865

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_subtesthack-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8b494af34ff3593dc6c8dbcdc7f330b0530bcc51c5db47a898dc3c21eea747e
MD5 c21614ac975f2d5ddd113a3b3cf2eab9
BLAKE2b-256 2e8918a445e8f74284e9da0f44b423e45b9f04974e7c524c885420170854534d

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