Skip to main content

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

Release files for pytest-fixtures 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-fixtures 0.0.6
File Size Uploaded
pytest-fixtures-0.0.6.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-fixtures 0.0.6
File Interpreter ABI Platform
pytest_fixtures-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 8.3 kB

Release files / pytest-fixtures-0.0.6.tar.gz

Download URL pytest-fixtures-0.0.6.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ab9e98455f2305da19ca54f04bb1164697b9509e35389eb9bad184d46b22ab62
BLAKE2b-256 checksum
How to use checksums
97b457fcd4263ae5a08c45fdebc3ac9130d6c8c5356ddff92b7253591a919d29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pytest_fixtures-0.0.6-py3-none-any.whl

Download URL pytest_fixtures-0.0.6-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f8e390eb0deaa858b2ed8a8bd3c754a62feae49f6f1bf1479a020316dd8de7c
BLAKE2b-256 checksum
How to use checksums
094024563b667bb9210afbb0815b39a1d55a5d89870863ac288d30530405b5fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.1.0

2 release files

This release

0.0.6 This release

2 release files

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page