MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_source_str_function

Function test_source_str_function

testing/code/test_source.py:23–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

SourceClass · 0.90

Tested by

no test coverage detected