{% from "components/tree/stage_item.j2.html" import stage_item with context %} {% macro stage(data) -%}

{% if data.name.lower().startswith('setup') %} Setup {% elif data.name.lower().startswith('test') %} Test Method {% elif data.name.lower().startswith('teardown') %} Teardown {% endif %} {{ data.name }}

    {% for item in data.stages %} {{ stage_item(item) }} {% endfor %}
{%- endmacro %}