MCPcopy Create free account
hub / github.com/streamlit/streamlit / _normalize_test_name

Function _normalize_test_name

scripts/fetch_flaky_tests.py:123–129  ·  view source on GitHub ↗

Normalize test name by removing browser suffix for aggregation.

(nodeid: str)

Source from the content-addressed store, hash-verified

121
122
123def _normalize_test_name(nodeid: str) -> str:
124 """Normalize test name by removing browser suffix for aggregation."""
125 for browser in _BROWSERS:
126 suffix = f"[{browser}]"
127 if nodeid.endswith(suffix):
128 return nodeid[: -len(suffix)]
129 return nodeid
130
131
132def _sort_key(item: dict[str, Any]) -> tuple[int, int]:

Callers 1

_aggregate_flaky_testsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…