Setup function for the test_display.py module. Remove all references to the display output in the DOM so we always start from a clean state.
()
| 27 | |
| 28 | |
| 29 | async def setup(): |
| 30 | """ |
| 31 | Setup function for the test_display.py module. Remove all references to the |
| 32 | display output in the DOM so we always start from a clean state. |
| 33 | """ |
| 34 | container = await get_display_container() |
| 35 | if container: |
| 36 | container.replaceChildren() |
| 37 | target_container = web.page.find("#test-element-container")[0] |
| 38 | target_container.innerHTML = "" |
| 39 | |
| 40 | |
| 41 | async def teardown(): |
nothing calls this directly
no test coverage detected