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 hashes)

Uploaded Source

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