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

Function test_SkipTest_during_collection

testing/test_nose.py:338–348  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

336
337
338def test_SkipTest_during_collection(pytester: Pytester) -> None:
339 p = pytester.makepyfile(
340 """
341 import nose
342 raise nose.SkipTest("during collection")
343 def test_failing():
344 assert False
345 """
346 )
347 result = pytester.runpytest(p)
348 result.assert_outcomes(skipped=1, warnings=1)
349
350
351def test_SkipTest_in_test(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

assert_outcomesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected