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.

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

Uploaded Source

Built Distribution

pytest_fixtures-0.0.6-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for pytest-fixtures-0.0.6.tar.gz
Algorithm Hash digest
SHA256 ab9e98455f2305da19ca54f04bb1164697b9509e35389eb9bad184d46b22ab62
MD5 56eeff094a16d887a7158ec21ccd8ffe
BLAKE2b-256 97b457fcd4263ae5a08c45fdebc3ac9130d6c8c5356ddff92b7253591a919d29

See more details on using hashes here.

File details

Details for the file pytest_fixtures-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_fixtures-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1f8e390eb0deaa858b2ed8a8bd3c754a62feae49f6f1bf1479a020316dd8de7c
MD5 791a02db5e912ffe80587378d7d4049c
BLAKE2b-256 094024563b667bb9210afbb0815b39a1d55a5d89870863ac288d30530405b5fe

See more details on using hashes here.

Supported by

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