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

Function test_findsource_fallback

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

findsourceFunction · 0.90

Tested by

no test coverage detected