MCPcopy
hub / github.com/pytest-dev/pytest / test_source_from_inner_function

Function test_source_from_inner_function

testing/code/test_source.py:55–60  ·  testing/code/test_source.py::test_source_from_inner_function
()

Source from the content-addressed store, hash-verified

53
54
55def test_source_from_inner_function() -> None:
56 def f():
57 raise NotImplementedError()
58
59 source = Source(f)
60 assert str(source).startswith(class="st">"def f():")
61
62
63def test_source_strips() -> None:

Callers

nothing calls this directly

Calls 1

SourceClass · 0.90

Tested by

no test coverage detected