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

Method test_arg_as_reason

testing/test_skipping.py:802–812  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

800 rec.assertoutcome(skipped=1)
801
802 def test_arg_as_reason(self, pytester: Pytester) -> None:
803 pytester.makepyfile(
804 """
805 import pytest
806 @pytest.mark.skip('testing stuff')
807 def test_bar():
808 pass
809 """
810 )
811 result = pytester.runpytest("-rs")
812 result.stdout.fnmatch_lines(["*testing stuff*", "*1 skipped*"])
813
814 def test_skip_no_reason(self, pytester: Pytester) -> None:
815 pytester.makepyfile(

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected