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

Method test_skip_no_reason

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

Source from the content-addressed store, hash-verified

812 result.stdout.fnmatch_lines(["*testing stuff*", "*1 skipped*"])
813
814 def test_skip_no_reason(self, pytester: Pytester) -> None:
815 pytester.makepyfile(
816 """
817 import pytest
818 @pytest.mark.skip
819 def test_foo():
820 pass
821 """
822 )
823 result = pytester.runpytest("-rs")
824 result.stdout.fnmatch_lines(["*unconditional skip*", "*1 skipped*"])
825
826 def test_skip_with_reason(self, pytester: Pytester) -> None:
827 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