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

Method on_mount

tests/snapshot_tests/test_snapshots.py:4416–4420  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4414 yield Markdown()
4415
4416 async def on_mount(self) -> None:
4417 markdown = self.query_one(Markdown)
4418 for line in MD:
4419 await markdown.append(line)
4420 await asyncio.sleep(0.01)
4421
4422 assert snap_compare(MDApp(), press=["1", "wait:500"])
4423

Callers

nothing calls this directly

Calls 6

query_oneMethod · 0.80
sleepMethod · 0.80
get_streamMethod · 0.80
appendMethod · 0.45
writeMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected