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

Function test_source_str_function

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

Source from the content-addressed store, hash-verified

18
19
20def test_source_str_function() -> None:
21 x = Source("3")
22 assert str(x) == "3"
23
24 x = Source(" 3")
25 assert str(x) == "3"
26
27 x = Source(
28 """
29 3
30 """
31 )
32 assert str(x) == "\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

Used in the wild real call sites across dependent graphs

searching dependent graphs…