Skip to main content

Common fixtures for pytest

Project description

pytest-fixtures

Common fixtures for pytest

To use, just install it and pytest will automatically detect and load all fixtures:

pip install pytest-fixtures

I suggest adding it to your test requirements in tox.ini or setup.py.

Dependencies

This package does not depend on any other packages and never will. It uses standard libraries or uses run-time imports and therefore it is lightweight to add to any project. As for which external run-time dependency a fixture needs, that is documented here and shouldn’t matter as you would only use the fixtures that your project already has dependencies on.

Click Fixtures

Fixtures for Click <http://click.pocoo.org/>

def test_cli(cli_runner):
    result = cli_runner.invoke( ... )                       # Prints out stdout/stderr from result with headings
    result = cli_runner.invoke_and_assert_exit(0, ... )     # Same as above and asserts exit code == 0

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-fixtures-0.0.5.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file pytest-fixtures-0.0.5.tar.gz.

File metadata

File hashes

Hashes for pytest-fixtures-0.0.5.tar.gz
Algorithm Hash digest
SHA256 026943a2665c534cf56de114b3d9e77949800989688db58ee718081016c2fff3
MD5 bbe4ca97106917c4d46b01c5a45819f6
BLAKE2b-256 c9924c66df428f35b2b66ef6d51a885310731a0ac2cd8c200758729e46e06516

See more details on using hashes here.

Supported by

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