check50

{{ slug }}


{% for check in checks %} {% if check.passed == True %}

:) {{ check.description }}

{% elif check.passed == False %}

:( {{ check.description }}

{% else %}

:| {{ check.description }}

{% endif %} {% if check.cause or check.log %}
{# Reason why the check received its status #} {% if check.cause %} {% autoescape false %} {{ check.cause.rationale | e | replace(" ", " ") }} {% endautoescape %}
{% autoescape false %} {% if check.cause.help %} {{ check.cause.help | e | replace(" ", " ") }}
{% endif %} {% endautoescape %} {% endif %} {# Log information #} {% if check.log %} Log
{% for item in check.log %} {{ item }}
{% endfor %} {% endif %} {% if check.cause and check.cause.error %}

Error
{{check.cause.error.type}}: {{check.cause.error.value}}
{% for line in check.cause.error.traceback%}     {{line}}
{% endfor %}
{% endif %} {# Mismatch if there was one #} {% if check.cause and "actual" in check.cause and "expected" in check.cause %}
Expected Output:
{% autoescape false %} {% if check.cause.expected is not string %} {% set expected = check.cause.expected | join('\n') | e %} {% else %} {% set expected = check.cause.expected | e %} {% endif %} {{ expected | replace(" ", " ") | replace("\n", "
") }} {% endautoescape %}
Actual Output:
{% autoescape false %} {% if check.cause.actual is not string %} {% set actual = check.cause.actual | join('\n') | e %} {% else %} {% set actual = check.cause.actual | e %} {% endif %} {{ actual | replace(" ", " ") | replace("\n", "
") }} {% endautoescape %}
{% endif %}
{% endif %} {% endfor %}