Пример #1
0
def test_startup_not_coroutine_typeerror(startup):
    """Test TypeError is raised if startup isn't a coroutine."""
    app = Application('testing')
    with pytest.raises(TypeError):
        app.startup(startup)
Пример #2
0
def test_startup_not_coroutine_typeerror(startup, ASYNC_QUEUE):
    """Test TypeError is raised if startup isn't a coroutine."""
    app = Application('testing', settings={'ASYNC_QUEUE': ASYNC_QUEUE})
    with pytest.raises(TypeError):
        app.startup(startup)