A refresh of the root node should cause a subsequent render call.
()
| 37 | |
| 38 | |
| 39 | async def test_root_refresh() -> None: |
| 40 | """A refresh of the root node should cause a subsequent render call.""" |
| 41 | async with RefreshApp().run_test() as pilot: |
| 42 | assert (0, 1) not in pilot.app.query_one(HistoryTree).render_hits |
| 43 | pilot.app.query_one(HistoryTree).counter += 1 |
| 44 | pilot.app.query_one(HistoryTree).root.refresh() |
| 45 | await pilot.pause() |
| 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.""" |
nothing calls this directly
no test coverage detected
searching dependent graphs…