{% endmacro %}
{% macro render_info_value(value) %}
{% if value is mapping %}
{% for sub_key, sub_value in value.items() %}
{{ sub_key }}: {{ render_info_value(sub_value) }}
{% endfor %}
{% elif value is sequence and value is not string %}
{% for sub_value in value %}
{{ render_info_value(sub_value) }}
{% endfor %}
{% else %}
{{ value }}
{% endif %}
{% endmacro %}
{% macro render_known_bugs(known_bugs) %}
{% endmacro %}
{% macro render_step(step) %}
{% set has_addons = step.expected or step.info or step.error or step.attachments or step.known_bugs %}
{% if step.id.startswith('print_') %}
{{ step.title }}
{% else %}
{{ step.title }}
{% if has_addons or step.steps %}
{% if step.error %}{% endif %}
{% if step.attachments %}{% endif %}
{% if step.info %}{% endif %}
{% if step.known_bugs %}{% endif %}
{% if step.expected %}{% endif %}
{% if step.steps %}
{% set count_steps = namespace(count=0) %}
{% for s in step.steps %}
{% if s.id.startswith('step_') %}
{% set count_steps.count = count_steps.count + 1 %}
{% endif %}
{% endfor %}
{{ count_steps.count }} sub step{{ 's' if count_steps.count > 1 else '' }}
{% endif %}