Add test script to launch a single room app
This commit is contained in:
parent
d62d64a4a4
commit
3c684070c5
1 changed files with 21 additions and 0 deletions
21
test_scripts/test_launch_single_room_widget.py
Normal file
21
test_scripts/test_launch_single_room_widget.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import asyncio
|
||||
import logging
|
||||
from typing import List, Optional
|
||||
|
||||
import urwid
|
||||
|
||||
from cheuph.euphoria.single_room_application import SingleRoomApplication
|
||||
|
||||
logging.disable()
|
||||
|
||||
def main():
|
||||
loop = asyncio.get_event_loop()
|
||||
main_loop = urwid.MainLoop(
|
||||
SingleRoomApplication(),
|
||||
event_loop=urwid.AsyncioEventLoop(loop=loop),
|
||||
)
|
||||
|
||||
main_loop.run()
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue