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

Function test_ini_markers_whitespace

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

Source from the content-addressed store, hash-verified

102
103
104def test_ini_markers_whitespace(pytester: Pytester) -> None:
105 pytester.makeini(
106 """
107 [pytest]
108 markers =
109 a1 : this is a whitespace marker
110 """
111 )
112 pytester.makepyfile(
113 """
114 import pytest
115
116 @pytest.mark.a1
117 def test_markers():
118 assert True
119 """
120 )
121 rec = pytester.inline_run("--strict-markers", "-m", "a1")
122 rec.assertoutcome(passed=1)
123
124
125def test_marker_without_description(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 4

assertoutcomeMethod · 0.80
makeiniMethod · 0.45
makepyfileMethod · 0.45
inline_runMethod · 0.45

Tested by

no test coverage detected