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

Method test_skip_class

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

Source from the content-addressed store, hash-verified

770
771class TestSkip:
772 def test_skip_class(self, pytester: Pytester) -> None:
773 pytester.makepyfile(
774 """
775 import pytest
776 @pytest.mark.skip
777 class TestSomething(object):
778 def test_foo(self):
779 pass
780 def test_bar(self):
781 pass
782
783 def test_baz():
784 pass
785 """
786 )
787 rec = pytester.inline_run()
788 rec.assertoutcome(skipped=2, passed=1)
789
790 def test_skips_on_false_string(self, pytester: Pytester) -> None:
791 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