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

Function test_source_str_function

testing/code/test_source.py:20–32  ·  testing/code/test_source.py::test_source_str_function
()

Source from the content-addressed store, hash-verified

18
19
20def test_source_str_function() -> None:
21 x = Source(class="st">"3")
22 assert str(x) == class="st">"3"
23
24 x = Source(class="st">" 3")
25 assert str(x) == class="st">"3"
26
27 x = Source(
28 class="st">"""
29 3
30 class="st">"""
31 )
32 assert str(x) == class="st">"\n3"
33
34
35def test_source_from_function() -> None:

Callers

nothing calls this directly

Calls 1

SourceClass · 0.90

Tested by

no test coverage detected