Files
rio/tests/test_app_build.py
T
2024-04-03 19:23:29 +02:00

15 lines
397 B
Python

from utils import create_mockapp
import rio
async def test_fundamental_container_as_root():
def build():
return rio.Row(rio.Text("Hello"))
async with create_mockapp(build) as app:
row_component = app.get_component(rio.Row)
text_component = app.get_component(rio.Text)
assert {row_component, text_component} <= app.last_updated_components