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

Method setup_class

testing/code/test_source.py:575–583  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

573
574class TestIf:
575 def setup_class(self) -> None:
576 self.source = """\
577if 1:
578 y = 3
579elif False:
580 y = 5
581else:
582 y = 7
583"""
584
585 def test_body(self) -> None:
586 source = getstatement(1, self.source)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected