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

Function test_source_from_lines

testing/code/test_source.py:49–52  ·  testing/code/test_source.py::test_source_from_lines
()

Source from the content-addressed store, hash-verified

47
48
49def test_source_from_lines() -> None:
50 lines = [class="st">"a \n", class="st">"b\n", class="st">"c"]
51 source = Source(lines)
52 assert source.lines == [class="st">"a ", class="st">"b", class="st">"c"]
53
54
55def test_source_from_inner_function() -> None:

Callers

nothing calls this directly

Calls 1

SourceClass · 0.90

Tested by

no test coverage detected