Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ test_source_from_function
Function
test_source_from_function
testing/code/test_source.py:38–40 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
36
37
38
def
test_source_from_function() -> None:
39
source = Source(test_source_str_function)
40
assert str(source).startswith(
"def test_source_str_function() -> None:"
)
41
42
43
def
test_source_from_method() -> None:
Callers
nothing calls this directly
Calls
1
Source
Class · 0.90
Tested by
no test coverage detected