Skip to content

Commit 26b7f3b

Browse files
committed
Update tests to textual 6.0
Textual added a breaking change where the renderable property on the Static widget has been changed to content. Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
1 parent 2d96931 commit 26b7f3b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/unit/test_tui_reporter.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,11 @@ async def run_before_wrapper(pilot) -> None:
141141

142142
def render_widget(widget: Widget) -> str:
143143
output = StringIO()
144-
rprint(widget.renderable, file=output) # type: ignore
144+
content = getattr(widget, "renderable", None)
145+
if content is None:
146+
content = widget.content # type: ignore
147+
assert content is not None
148+
rprint(content, file=output)
145149
return output.getvalue()
146150

147151

0 commit comments

Comments
 (0)