{% for test in tests %}
{% block test_title scoped %}
{{ test.status.word }}

{% block test_name scoped %}{{ test.item.name }}{% endblock %}

{{ test.phases|sum('report.duration')|timedelta }}
{% endblock %}
{% block test_content scoped %} {% if test.item.function.__doc__ %}
{{ test.item.function.__doc__|cleandoc|rst|safe }}
{% endif %} {% block test_metadata scoped %} {% set markers = test.item.iter_markers()|rejectattr('name', '==', 'parametrize')|list %} {% if markers %} {% endif %} {% if test.item.fixturenames %} {% endif %} {% endblock %} {% for phase in test.phases if phase.call.excinfo %}
{{ phase.call.excinfo.getrepr(style='short', chain=False) }}
{% endfor %}
{% set ns = namespace(used_sections=[]) %} {% for phase in test.phases %} {% set sections = phase.report.sections|rejectattr(0, 'in', ns.used_sections)|list %}

{{ phase.report.when|title }}

{% if phase.report.longrepr %}
{{ phase.report.longrepr }}
{% endif %} {% for section, content in sections %} {% set ns.used_sections = ns.used_sections + [section] %}
{{ section }}
{{ content|escape|replace('\r\n', '\n')|ansi|safe }}
{% endfor %}
{% endfor %}
{% endblock %}
{% endfor %}