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

Function test_source_from_function

testing/code/test_source.py:35–37  ·  testing/code/test_source.py::test_source_from_function
()

Source from the content-addressed store, hash-verified

33
34
35def test_source_from_function() -> None:
36 source = Source(test_source_str_function)
37 assert str(source).startswith(class="st">"def test_source_str_function() -> None:")
38
39
40def test_source_from_method() -> None:

Callers

nothing calls this directly

Calls 1

SourceClass · 0.90

Tested by

no test coverage detected