def test_message_acknowledgement_not_coroutine_typeerror(acknowledgement): """Test TypeError is raised if acknowledgement isn't a coroutine.""" app = Application('testing') with pytest.raises(TypeError): app.message_acknowledgement(acknowledgement)
def test_message_acknowledgement_not_coroutine_typeerror( acknowledgement, ASYNC_QUEUE): """Test TypeError is raised if acknowledgement isn't a coroutine.""" app = Application('testing', settings={'ASYNC_QUEUE': ASYNC_QUEUE}) with pytest.raises(TypeError): app.message_acknowledgement(acknowledgement)