Skip to main content

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)

Source distribution for pytest-mark-filter 0.1.2
File Size Uploaded
pytest_mark_filter-0.1.2.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-mark-filter 0.1.2
File Interpreter ABI Platform
pytest_mark_filter-0.1.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

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