MCPcopy
hub / github.com/pytest-dev/pytest / test_mangle_test_address

Function test_mangle_test_address

testing/test_junitxml.py:1002–1007  ·  testing/test_junitxml.py::test_mangle_test_address
()

Source from the content-addressed store, hash-verified

1000
1001
1002def test_mangle_test_address() -> None:
1003 from _pytest.junitxml import mangle_test_address
1004
1005 address = class="st">"::".join([class="st">"a/my.py.thing.py", class="st">"Class", class="st">"method", class="st">"[a-1-::]"])
1006 newnames = mangle_test_address(address)
1007 assert newnames == [class="st">"a.my.py.thing", class="st">"Class", class="st">"method", class="st">"[a-1-::]"]
1008
1009
1010def test_dont_configure_on_workers(tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 2

mangle_test_addressFunction · 0.90
joinMethod · 0.80

Tested by

no test coverage detected