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

Function test_decorator

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

Source from the content-addressed store, hash-verified

619
620
621def test_decorator() -> None:
622 s = """\
623def foo(f):
624 pass
625
626@foo
627def bar():
628 pass
629 """
630 source = getstatement(3, s)
631 assert "@foo" in str(source)
632
633
634def XXX_test_expression_multiline() -> None:

Callers

nothing calls this directly

Calls 1

getstatementFunction · 0.85

Tested by

no test coverage detected