This commit is contained in:
Will McGugan
2023-02-04 16:10:33 +01:00
parent de2a4fd78d
commit 59def1a591
2 changed files with 3 additions and 2 deletions

View File

@@ -212,7 +212,7 @@ class StylesCache:
padding: Spacing, padding: Spacing,
base_background: Color, base_background: Color,
background: Color, background: Color,
render_content_line: RenderLineCallback, render_content_line: Callable[[int], Strip],
) -> Strip: ) -> Strip:
"""Render a styled line. """Render a styled line.

View File

@@ -227,12 +227,13 @@ def test_dirty_cache() -> None:
Color.parse("blue"), Color.parse("blue"),
Color.parse("green"), Color.parse("green"),
get_content_line, get_content_line,
Size(3, 3),
) )
assert rendered_lines == [0, 1, 2] assert rendered_lines == [0, 1, 2]
del rendered_lines[:] del rendered_lines[:]
text_content = _extract_content(lines) text_content = _extract_content(lines)
print(text_content)
expected_text = [ expected_text = [
"┏━━━━━┓", "┏━━━━━┓",
"┃ ┃", "┃ ┃",