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

Function test_def_online

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

Source from the content-addressed store, hash-verified

608
609
610def test_def_online() -> None:
611 s = """\
612def func(): raise ValueError(42)
613
614def something():
615 pass
616"""
617 source = getstatement(0, s)
618 assert str(source) == "def func(): raise ValueError(42)"
619
620
621def test_decorator() -> None:

Callers

nothing calls this directly

Calls 1

getstatementFunction · 0.85

Tested by

no test coverage detected