Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pytest-dev/pytest
/ rewrite
Function
rewrite
testing/test_assertrewrite.py:43–46 ·
view source on GitHub ↗
(src: str)
Source
from the content-addressed store, hash-verified
41
42
43
def
rewrite(src: str) -> ast.Module:
44
tree = ast.parse(src)
45
rewrite_asserts(tree, src.encode())
46
return
tree
47
48
49
def
getmsg(
Callers
5
getmsg
Function · 0.85
test_place_initial_imports
Method · 0.85
test_location_is_set
Method · 0.85
preserved
Method · 0.85
test_dont_rewrite
Method · 0.85
Calls
2
rewrite_asserts
Function · 0.90
parse
Method · 0.45
Tested by
no test coverage detected