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

Function replace_link_ids

tests/test_log.py:12–17  ·  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

10
11
12def replace_link_ids(render: str) -> str:
13 """Link IDs have a random ID and system path which is a problem for
14 reproducible tests.
15
16 """
17 return re_link_ids.sub("id=0;foo\x1b", render)
18
19
20test_data = [1, 2, 3]

Callers 2

render_logFunction · 0.70
test_logFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected