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

Method setup_class

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

Source from the content-addressed store, hash-verified

79
80class TestAccesses:
81 def setup_class(self) -> None:
82 self.source = Source(
83 """\
84 def f(x):
85 pass
86 def g(x):
87 pass
88 """
89 )
90
91 def test_getrange(self) -> None:
92 x = self.source[0:2]

Callers

nothing calls this directly

Calls 1

SourceClass · 0.90

Tested by

no test coverage detected