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

Method test_method

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

Source from the content-addressed store, hash-verified

43def test_source_from_method() -> None:
44 class TestClass:
45 def test_method(self):
46 pass
47
48 source = Source(TestClass().test_method)
49 assert source.lines == ["def test_method(self):", " pass"]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected