Pytest-MarkFiltration
The default py.test keyword filtering (-k) is _way_ too broad. You would think that it would be based on the MarkInfo objects that are described alongside the filter option but that would be incorrect. In fact, it chooses the method/function name of the script as well.
This plugin introduces a -f flag for pytest that takes the name of a MarkInfo object to either keep or remove from the collected scripts.
The syntax is the same as with -k. So…
To include a script with a MarkInfo object on it
py.test -f rhino
And to disclude one
py.test -f -hippo
Just like with -k you can do an ‘and’ collection as well with
py.test -f “hippo rhino”
or
py.test -f “hippo -rhino”
But the built-in -k does not let you do an ‘or’ collection. -f does allow for it though through multiple instances of he flag
py.test -f hippo -f rhino
and perhaps a silly example of
py.test -f hippo -f -rhino
To install, either * pip install pytest-markfiltration * python setup.py install
Metadata
Release files for pytest-markfiltration 0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_markfiltration-0.8-py2.7.egg | Legacy Egg format | - | - | Details for pytest_markfiltration-0.8-py2.7.egg |
Release files / pytest_markfiltration-0.8-py2.7.egg
| Download URL | pytest_markfiltration-0.8-py2.7.egg |
|---|---|
| Size | 5.2 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
dd74723ef5c88df273dcc77e2b51631218de146dc8d6e3245c959363263a8a5b
|
|
BLAKE2b-256 checksum How to use checksums |
2e1b6fa8e5dacd564dd69679b06f816ab1c908377133cfe6bd7db06642c310f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pytest-markfiltration 0.8
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.