Skip to content

Commit 9109188

Browse files
committed
test
1 parent da5395b commit 9109188

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_app.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,3 +353,15 @@ def on_mount(self) -> None:
353353
app = MyApp()
354354
result = app.run(loop=asyncio.new_event_loop())
355355
assert result == 42
356+
357+
358+
async def test_app_run_async() -> None:
359+
"""Check run_async runs without issues."""
360+
361+
class MyApp(App[int]):
362+
def on_mount(self) -> None:
363+
self.exit(42)
364+
365+
app = MyApp()
366+
result = await app.run_async()
367+
assert result == 42

0 commit comments

Comments
 (0)