MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_markers_option

Function test_markers_option

testing/test_mark.py:88–101  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

86
87
88def test_markers_option(pytester: Pytester) -> None:
89 pytester.makeini(
90 """
91 [pytest]
92 markers =
93 a1: this is a webtest marker
94 a1some: another marker
95 nodescription
96 """
97 )
98 result = pytester.runpytest("--markers")
99 result.stdout.fnmatch_lines(
100 ["*a1*this is a webtest*", "*a1some*another marker", "*nodescription*"]
101 )
102
103
104def test_ini_markers_whitespace(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makeiniMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected