Ejemplo n.º 1
0
def recipe_junit_xml(id):
    """
    Returns the recipe in JUnit-compatible XML format.
    """
    recipe = _get_recipe_by_id(id)
    response = make_response(recipe_to_junit_xml(recipe))
    response.status_code = 200
    response.headers.add('Content-Type', 'text/xml; charset=utf-8')
    return response
Ejemplo n.º 2
0
def recipe_junit_xml(id):
    """
    Returns the recipe in JUnit-compatible XML format.
    """
    recipe = _get_recipe_by_id(id)
    response = make_response(recipe_to_junit_xml(recipe))
    response.status_code = 200
    response.headers.add('Content-Type', 'text/xml; charset=utf-8')
    return response