Tests for the regular expressions used in ISO8601Highlighter.
(test: str, spans: List[Span])
| 455 | |
| 456 | @pytest.mark.parametrize("test, spans", iso8601_highlight_tests) |
| 457 | def 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…