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

Function test_highlight_iso8601_regex

tests/test_highlighter.py:457–463  ·  view source on GitHub ↗

Tests for the regular expressions used in ISO8601Highlighter.

(test: str, spans: List[Span])

Source from the content-addressed store, hash-verified

455
456@pytest.mark.parametrize("test, spans", iso8601_highlight_tests)
457def test_highlight_iso8601_regex(test: str, spans: List[Span]):
458 """Tests for the regular expressions used in ISO8601Highlighter."""
459 text = Text(test)
460 highlighter = ISO8601Highlighter()
461 highlighter.highlight(text)
462 print(text.spans)
463 assert text.spans == spans

Callers

nothing calls this directly

Calls 4

TextClass · 0.90
ISO8601HighlighterClass · 0.90
printFunction · 0.50
highlightMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…