Exemplo n.º 1
0
def test_result_postprocessor_not_coroutine_typeerror(postprocess):
    """Test TypeError is raised if postprocessor isn't a coroutine."""
    app = Application('testing')
    with pytest.raises(TypeError):
        app.result_postprocessor(postprocess)
Exemplo n.º 2
0
def test_result_postprocessor_not_coroutine_typeerror(postprocess,
                                                      ASYNC_QUEUE):
    """Test TypeError is raised if postprocessor isn't a coroutine."""
    app = Application('testing', settings={'ASYNC_QUEUE': ASYNC_QUEUE})
    with pytest.raises(TypeError):
        app.result_postprocessor(postprocess)