MCPcopy Index your code
hub / github.com/Textualize/textual / test_app_loop

Function test_app_loop

tests/test_app.py:351–360  ·  view source on GitHub ↗

Test that App.run accepts a loop argument.

()

Source from the content-addressed store, hash-verified

349
350
351def test_app_loop() -> None:
352 """Test that App.run accepts a loop argument."""
353
354 class MyApp(App[int]):
355 def on_mount(self) -> None:
356 self.exit(42)
357
358 app = MyApp()
359 result = app.run(loop=asyncio.new_event_loop())
360 assert result == 42
361
362
363async def test_app_run_async() -> None:

Callers

nothing calls this directly

Calls 2

MyAppClass · 0.70
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…