mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
test fix
This commit is contained in:
@@ -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.
|
||||||
|
|
||||||
|
|||||||
@@ -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 = [
|
||||||
"┏━━━━━┓",
|
"┏━━━━━┓",
|
||||||
"┃ ┃",
|
"┃ ┃",
|
||||||
|
|||||||
Reference in New Issue
Block a user