pytest-fixturecollection
A pytest plugin to collect tests based on fixtures being used in tests
This pytest plugin was generated with Cookiecutter along with @hackebrot’s cookiecutter-pytest-plugin template.
Features
Filter tests collection/execution based on fixtures being used by tests
One or more number(comma separated) of fixtures are supported with option –uses-fixtures
One can combine fixture based collection with pytests default options/plugins for further smart collection.
Requirements
Python >= 3.9
Pytest >= 3.5
Installation
You can install “pytest-fixturecollection” via pip from PyPI:
$ pip install pytest-fixturecollection
Usage
Once plugin is installed, run pytest command with “–uses-fixtures” option as shown below:
# pytest --uses-fixtures fixture1,fixture2 tests/
Explanation: All the tests using fixture1 or fixture2 inside tests directory would be collected and executed and rest tests would be uncollected (not executed). You can also choose to just –collect-only to view what tests are collected.
Contributing
Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.
License
Distributed under the terms of the BSD-3 license, “pytest-fixturecollection” is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
Metadata
Release files for pytest-fixturecollection 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest-fixturecollection-0.1.2.tar.gz | 4.5 kB | Without provenance | Details for pytest-fixturecollection-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_fixturecollection-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for pytest_fixturecollection-0.1.2-py3-none-any.whl |
Total release size: 9.0 kB
Release files / pytest-fixturecollection-0.1.2.tar.gz
| Download URL | pytest-fixturecollection-0.1.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62b072a368aa2f24177996fa49135675d32be26abe24abb7063c0618cca5436e
|
|
BLAKE2b-256 checksum How to use checksums |
bf5e317f9e8009594dbbd81ac7375862845a99bdf8564a396cd3c6aa6c528645
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / pytest_fixturecollection-0.1.2-py3-none-any.whl
| Download URL | pytest_fixturecollection-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0253e12a58ae8d5458ee03bd3c1f9815fda345fe2bd07310711d9eee1df5617c
|
|
BLAKE2b-256 checksum How to use checksums |
0a6756bd471fbad28d1146ba2eaafa9d373ef8bef87c2986e59cab2d23f90dd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Security for pytest-fixturecollection 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.