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

Method test_strict_and_skip

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

Source from the content-addressed store, hash-verified

853 result.stdout.fnmatch_lines(["*nothing in particular*", "*1 passed*2 skipped*"])
854
855 def test_strict_and_skip(self, pytester: Pytester) -> None:
856 pytester.makepyfile(
857 """
858 import pytest
859 @pytest.mark.skip
860 def test_hello():
861 pass
862 """
863 )
864 result = pytester.runpytest("-rs", "--strict-markers")
865 result.stdout.fnmatch_lines(["*unconditional skip*", "*1 skipped*"])
866
867 def test_wrong_skip_usage(self, pytester: Pytester) -> None:
868 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