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)
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)