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

Function rewrite

testing/test_assertrewrite.py:38–41  ·  view source on GitHub ↗
(src: str)

Source from the content-addressed store, hash-verified

36
37
38def rewrite(src: str) -> ast.Module:
39 tree = ast.parse(src)
40 rewrite_asserts(tree, src.encode())
41 return tree
42
43
44def getmsg(

Callers 4

getmsgFunction · 0.85
test_location_is_setMethod · 0.85
test_dont_rewriteMethod · 0.85

Calls 2

rewrite_assertsFunction · 0.90
parseMethod · 0.45

Tested by

no test coverage detected