MCPcopy
hub / github.com/Textualize/textual / test_highlight

Function test_highlight

tests/test_highlight.py:7–16  ·  view source on GitHub ↗

Test simple application of highlight.

()

Source from the content-addressed store, hash-verified

5
6
7def test_highlight() -> None:
8 """Test simple application of highlight."""
9 import_this = highlight("import this", language="python")
10 assert import_this.plain == "import this"
11 print(import_this.spans)
12 assert import_this.spans == [
13 Span(0, 11, style="$text"),
14 Span(0, 6, style="$text-error"),
15 Span(7, 11, style="$text-primary"),
16 ]
17
18
19@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

highlightFunction · 0.90
SpanClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…