Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pytest-dev/pytest
/ TestClass
Class
TestClass
testing/code/test_source.py:41–43 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
39
40
def
test_source_from_method() -> None:
41
class
TestClass:
42
def
test_method(self):
43
pass
44
45
source = Source(TestClass().test_method)
46
assert source.lines == [
"def test_method(self):"
,
" pass"
]
Callers
1
test_source_from_method
Function · 0.70
Calls
no outgoing calls
Tested by
1
test_source_from_method
Function · 0.56