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

Function test_query_refresh

tests/test_query.py:321–336  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

319 "args", [(False, False), (True, False), (True, True), (False, True)]
320)
321async def test_query_refresh(args):
322 refreshes = []
323
324 class MyWidget(Widget):
325 def refresh(self, *, repaint=None, layout=None, recompose=None):
326 super().refresh(repaint=repaint, layout=layout)
327 refreshes.append((repaint, layout))
328
329 class MyApp(App):
330 def compose(self):
331 yield MyWidget()
332
333 app = MyApp()
334 async with app.run_test() as pilot:
335 app.query(MyWidget).refresh(repaint=args[0], layout=args[1])
336 assert refreshes[-1] == args
337
338
339async def test_query_focus_blur():

Callers

nothing calls this directly

Calls 4

run_testMethod · 0.80
MyAppClass · 0.70
refreshMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…