MCPcopy
hub / github.com/pytest-dev/pytest / test_setup_that_skips_calledagain

Function test_setup_that_skips_calledagain

testing/test_runner_xunit.py:185–198  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

183
184
185def test_setup_that_skips_calledagain(pytester: Pytester) -> None:
186 p = pytester.makepyfile(
187 """
188 import pytest
189 def setup_module(mod):
190 pytest.skip("x")
191 def test_function1():
192 pass
193 def test_function2():
194 pass
195 """
196 )
197 reprec = pytester.inline_run(p)
198 reprec.assertoutcome(skipped=2)
199
200
201def test_setup_fails_again_on_all_tests(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

assertoutcomeMethod · 0.80
makepyfileMethod · 0.45
inline_runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…