A refresh of the child node should cause a subsequent render call.
()
| 46 | assert (0, 1) in pilot.app.query_one(HistoryTree).render_hits |
| 47 | |
| 48 | async def test_child_refresh() -> None: |
| 49 | """A refresh of the child node should cause a subsequent render call.""" |
| 50 | async with RefreshApp().run_test() as pilot: |
| 51 | assert (1, 1) not in pilot.app.query_one(HistoryTree).render_hits |
| 52 | pilot.app.query_one(HistoryTree).counter += 1 |
| 53 | pilot.app.query_one(HistoryTree).root.children[0].refresh() |
| 54 | await pilot.pause() |
| 55 | assert (1, 1) in pilot.app.query_one(HistoryTree).render_hits |
| 56 | |
| 57 | async def test_grandchild_refresh() -> None: |
| 58 | """A refresh of the grandchild node should cause a subsequent render call.""" |
nothing calls this directly
no test coverage detected
searching dependent graphs…