Mark Filter
Most pytest marks accept additional keywords arguments. This plugin will check for the match and not_match keywords. Any test that has the string in its name will be filtered accordingly. You can use both at the same time too.
Match
import pytest
pytestmark = [
pytest.mark.skipif(match="skip")
]
def test_normal():
pass
def test_skip():
pass
def test_other():
pass
Any test that has "skip" in the name will get the mark. In this case, test_skip.
Not Match
import pytest
pytestmark = [
pytest.mark.skipif(not_match="skip")
]
def test_normal():
pass
def test_skip():
pass
def test_other():
pass
Any test that doesn't have "skip" in the name will get the mark. In this case, test_normal and test_other.
Installing
pip install pytest-mark-filter
Metadata
Release files for pytest-mark-filter 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_mark_filter-0.1.2.tar.gz | 10.4 kB | Without provenance | Details for pytest_mark_filter-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_mark_filter-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for pytest_mark_filter-0.1.2-py3-none-any.whl |
Total release size: 13.6 kB
Release files / pytest_mark_filter-0.1.2.tar.gz
| Download URL | pytest_mark_filter-0.1.2.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8454964fefb4e28a13734f6f8de2ff9b5270fb58013cd68c15152c1e72721514
|
|
BLAKE2b-256 checksum How to use checksums |
5c3a0fd66c1c05781d11de69b9ecab7274c9c5b9606cc35300cbea109ba6cc13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.17
|
Release files / pytest_mark_filter-0.1.2-py3-none-any.whl
| Download URL | pytest_mark_filter-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63fdd24f86609da46b140789e9f41cc12b9f76816696f173f319eed9abd93450
|
|
BLAKE2b-256 checksum How to use checksums |
5eec24273b45e0251393fae312c09889552ff964ee56ec834876cb9ee59e285c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.17
|
Security for pytest-mark-filter 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.