Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ TestClass
Class
TestClass
testing/code/test_source.py:44–46 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
42
43
def
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
1
test_source_from_method
Function · 0.70
Calls
no outgoing calls
Tested by
1
test_source_from_method
Function · 0.56