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

Function test_findsource_fallback

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

Source from the content-addressed store, hash-verified

315
316
317def test_findsource_fallback() -> None:
318 from _pytest._code.source import findsource
319
320 src, lineno = findsource(x)
321 assert src is not None
322 assert "test_findsource_simple" in str(src)
323 assert src[lineno] == " def x():"
324
325
326def test_findsource(monkeypatch) -> None:

Callers

nothing calls this directly

Calls 1

findsourceFunction · 0.90

Tested by

no test coverage detected