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

Function test_mangle_test_address

testing/test_junitxml.py:936–941  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

934
935
936def test_mangle_test_address() -> None:
937 from _pytest.junitxml import mangle_test_address
938
939 address = "::".join(["a/my.py.thing.py", "Class", "method", "[a-1-::]"])
940 newnames = mangle_test_address(address)
941 assert newnames == ["a.my.py.thing", "Class", "method", "[a-1-::]"]
942
943
944def test_dont_configure_on_workers(tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 1

mangle_test_addressFunction · 0.90

Tested by

no test coverage detected