MCPcopy 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
38def 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
43def test_source_from_method() -> None:

Callers

nothing calls this directly

Calls 1

SourceClass · 0.90

Tested by

no test coverage detected