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

Function test_initial_state

tests/tree/test_node_refresh.py:32–36  ·  view source on GitHub ↗

Initially all the visible nodes should have had a render call.

()

Source from the content-addressed store, hash-verified

30
31
32async def test_initial_state() -> None:
33 """Initially all the visible nodes should have had a render call."""
34 app = RefreshApp()
35 async with app.run_test():
36 assert app.query_one(HistoryTree).render_hits == {(0,0), (1,0), (2,0)}
37
38
39async def test_root_refresh() -> None:

Callers

nothing calls this directly

Calls 3

run_testMethod · 0.80
query_oneMethod · 0.80
RefreshAppClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…