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

Function test_skipped_folding

testing/test_skipping.py:1022–1038  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

1020
1021
1022def test_skipped_folding(pytester: Pytester) -> None:
1023 pytester.makepyfile(
1024 test_one="""
1025 import pytest
1026 pytestmark = pytest.mark.skip("Folding")
1027 def setup_function(func):
1028 pass
1029 def test_func():
1030 pass
1031 class TestClass(object):
1032 def test_method(self):
1033 pass
1034 """
1035 )
1036 result = pytester.runpytest("-rs")
1037 result.stdout.fnmatch_lines(["*SKIP*2*test_one.py: Folding"])
1038 assert result.ret == 0
1039
1040
1041def test_reportchars(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected