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 reuqirements in tox.ini or setup.py.

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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for pytest-fixtures-0.0.4.tar.gz
Algorithm Hash digest
SHA256 63097991d731cb26f49f005cfb3122aa9687654a312311496d8043319800b7cc
MD5 a8c9d01c39613bce945a86ea5b8b25a1
BLAKE2b-256 fb13b393bf6cde348f8d031ae0339a05e07c9cb0f55cd7fc663d73d6ac6c8dbd

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