Tests for the regular expressions used in ReprHighlighter.
(test: str, spans: List[Span])
| 159 | |
| 160 | @pytest.mark.parametrize("test, spans", highlight_tests) |
| 161 | def test_highlight_regex(test: str, spans: List[Span]): |
| 162 | """Tests for the regular expressions used in ReprHighlighter.""" |
| 163 | text = Text(test) |
| 164 | highlighter = ReprHighlighter() |
| 165 | highlighter.highlight(text) |
| 166 | print(text.spans) |
| 167 | assert text.spans == spans |
| 168 | |
| 169 | |
| 170 | def test_highlight_json_with_indent(): |
nothing calls this directly
no test coverage detected