MCPcopy
hub / github.com/Textualize/rich / replace_link_ids

Function replace_link_ids

tests/render.py:10–15  ·  view source on GitHub ↗

Link IDs have a random ID and system path which is a problem for reproducible tests.

(render: str)

Source from the content-addressed store, hash-verified

8
9
10def replace_link_ids(render: str) -> str:
11 """Link IDs have a random ID and system path which is a problem for
12 reproducible tests.
13
14 """
15 return re_link_ids.sub("id=0;foo\x1b", render)
16
17
18def render(renderable: RenderableType, no_wrap: bool = False) -> str:

Callers 2

renderFunction · 0.70
test_columnsFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_columnsFunction · 0.56