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

Method test_skips_on_false_string

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

Source from the content-addressed store, hash-verified

788 rec.assertoutcome(skipped=2, passed=1)
789
790 def test_skips_on_false_string(self, pytester: Pytester) -> None:
791 pytester.makepyfile(
792 """
793 import pytest
794 @pytest.mark.skip('False')
795 def test_foo():
796 pass
797 """
798 )
799 rec = pytester.inline_run()
800 rec.assertoutcome(skipped=1)
801
802 def test_arg_as_reason(self, pytester: Pytester) -> None:
803 pytester.makepyfile(

Callers

nothing calls this directly

Calls 3

assertoutcomeMethod · 0.80
makepyfileMethod · 0.45
inline_runMethod · 0.45

Tested by

no test coverage detected