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

Function test_render_str

tests/test_widget.py:318–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

316
317
318async def test_render_str() -> None:
319 widget = Label()
320 assert widget.render_str("foo") == Content("foo")
321 assert widget.render_str("[b]foo") == Content.from_markup("[b]foo")
322 # Text objects are passed unchanged
323 content = Content("bar")
324 assert widget.render_str(content) is content
325
326
327async def test_compose_order() -> None:

Callers

nothing calls this directly

Calls 4

LabelClass · 0.90
ContentClass · 0.90
render_strMethod · 0.80
from_markupMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…