예제 #1
0
def run(port, debug):
    app = App()

    try:
        app.run()
    except KeyboardInterrupt:
        app.stop()
예제 #2
0
def test_app_run(mocked_asyncio):
    """Should create tasks and run forever"""

    app = App()
    app.run()
    mocked_event_loop = mocked_asyncio.get_event_loop.return_value

    mocked_asyncio.get_event_loop.assert_called_with()
    mocked_event_loop.run_forever.assert_called_with()
예제 #3
0
from bottery.app import App


app = App()
app.run()
예제 #4
0
파일: cli.py 프로젝트: thaisviana/bottery
def run(port, debug):
    app = App()
    app.run()