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

Function test_lazy

tests/test_lazy.py:16–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15
16async def test_lazy():
17 app = LazyApp()
18 async with app.run_test() as pilot:
19 # No #foo on initial mount
20 assert len(app.query("#foo")) == 0
21 assert len(app.query("#bar")) == 1
22 await pilot.pause()
23 await pilot.pause()
24 # #bar mounted after refresh
25 assert len(app.query("#foo")) == 1
26 assert len(app.query("#bar")) == 1
27
28
29class RevealApp(App):

Callers

nothing calls this directly

Calls 4

LazyAppClass · 0.85
run_testMethod · 0.80
queryMethod · 0.45
pauseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…