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

Method setup_class

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

Source from the content-addressed store, hash-verified

111
112class TestSourceParsing:
113 def setup_class(self) -> None:
114 self.source = Source(
115 """\
116 def f(x):
117 assert (x ==
118 3 +
119 4)
120 """
121 ).strip()
122
123 def test_getstatement(self) -> None:
124 # print str(self.source)

Callers

nothing calls this directly

Calls 2

SourceClass · 0.90
stripMethod · 0.80

Tested by

no test coverage detected