Pytest marker for tests that need a person to execute them.
Tests marked manual are not run; they are reported with their own
manual outcome (M in the progress line) instead of passing or failing.
# content of test_manual.py
import pytest
@pytest.mark.manual
def test_manual():
"""this needs a person to run it and reports MANUAL as its outcome"""
def test_automated():
"""an empty automated test, for show"""$ pytest -q
M. [100%]
1 passed, 1 manual in 0.01s$ pytest -q --manual-only
M [100%]
1 deselected, 1 manual in 0.01s$ pytest -q -m "not manual"
. [100%]
1 passed, 1 deselected in 0.00s$ pip install pytest-manual-marker