Files
rio/tests/test_app_build.py
Jakob Pinterits b74bdaacb0 extension fixes
2025-01-01 22:18:19 +01:00

16 lines
473 B
Python

import rio.testing
async def test_fundamental_container_as_root() -> None:
def build() -> rio.Component:
return rio.Row(rio.Text("Hello"))
async with rio.testing.TestClient(build) as test_client:
row_component = test_client.get_component(rio.Row)
text_component = test_client.get_component(rio.Text)
assert {
row_component,
text_component,
} <= test_client._last_updated_components