Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ test_source_from_inner_function
Function
test_source_from_inner_function
testing/code/test_source.py:58–63 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
56
57
58
def
test_source_from_inner_function() -> None:
59
def
f():
60
raise
NotImplementedError()
61
62
source = Source(f)
63
assert str(source).startswith(
"def f():"
)
64
65
66
def
test_source_strips() -> None:
Callers
nothing calls this directly
Calls
1
Source
Class · 0.90
Tested by
no test coverage detected