A pytest plugin to add markers based on fixtures used.
Project description
A pytest plugin to add markers based on fixtures used.
Why
Ever found yourself wanting to run all tests that use a certain fixture? This plugin will allow you to do that.
Installation
You can install “pytest-fixture-marker” via pip from PyPI:
$ pip install pytest-fixture-marker
Usage
Once installed, the plugin will automatically mark each test. Marker names are generated from the fixture names.:
$ # run all tests that use the tempdir fixture $ pytest -m tempdir_fixture
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 MIT license, “pytest-fixture-marker” is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pytest-fixture-marker-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60b379eeec38e0eed2ba5c23fb54ee74eac2c9ffcb0ef36b28324423af4c6334 |
|
MD5 | 584d29fd96f7101f1d0ba23b73981596 |
|
BLAKE2b-256 | df9e55b657867d7851eb04efed546a5988b918c721e7d5bce7ee27d72b7d6304 |
Hashes for pytest_fixture_marker-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdaaea9bdd6f23ae0fba829a13b508479eddbe3e6cd296145404e05acf6d513f |
|
MD5 | 42075648c2e5d2a8bc4c49f05484f69b |
|
BLAKE2b-256 | b577f94f187c4968dd1277c4afd6597aae4371c499849d120585ce21c869565c |