Files
rio/tests/test_app_build.py
2024-05-20 00:01:51 +02:00

16 lines
448 B
Python

import rio.testing
async def test_fundamental_container_as_root():
def build():
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