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

Function test_marker_without_description

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

Source from the content-addressed store, hash-verified

123
124
125def test_marker_without_description(pytester: Pytester) -> None:
126 pytester.makefile(
127 ".cfg",
128 setup="""
129 [tool:pytest]
130 markers=slow
131 """,
132 )
133 pytester.makeconftest(
134 """
135 import pytest
136 pytest.mark.xfail('FAIL')
137 """
138 )
139 ftdir = pytester.mkdir("ft1_dummy")
140 pytester.path.joinpath("conftest.py").replace(ftdir.joinpath("conftest.py"))
141 rec = pytester.runpytest("--strict-markers")
142 rec.assert_outcomes()
143
144
145def test_markers_option_with_plugin_in_current_dir(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 5

assert_outcomesMethod · 0.80
makefileMethod · 0.45
makeconftestMethod · 0.45
mkdirMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected