Beispiel #1
0
def test_teardown_not_coroutine_typeerror(teardown):
    """Test TypeError is raised if teardown isn't a coroutine."""
    app = Application('testing')
    with pytest.raises(TypeError):
        app.teardown(teardown)
Beispiel #2
0
def test_teardown_not_coroutine_typeerror(teardown, ASYNC_QUEUE):
    """Test TypeError is raised if teardown isn't a coroutine."""
    app = Application('testing', settings={'ASYNC_QUEUE': ASYNC_QUEUE})
    with pytest.raises(TypeError):
        app.teardown(teardown)