def METHOD_NAME(self):
    """Ensure we don't crash when no result backend has been set."""
    cli = CliRunner()
    # mock.patch.dict() fails because the conf object is too complex, mock manually:
    import bodhi.server.tasks
    app = bodhi.server.tasks.app
    old_result_backend = app.conf.result_backend
    app.conf.result_backend = None
    try:
        with patch('bodhi.server.tasks.expire_overrides_task', self.task_mock):
            result = cli.invoke(compat.expire_overrides)
    finally:
        app.conf.result_backend = old_result_backend
    assert result.exit_code == 0
    self.task_mock.delay.assert_called_with()
    self.task_result.get.assert_not_called()
    assert result.output.strip() == (
        "No result backend have been configured in Celery, "
        "I cannot wait for the task to complete."
    )