-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
I'm using a parent template (never used on its own but always extended from) with the following code snippet:
<main id="{{ page }}">
{% if page != "home" %}
<div class="container py-4">
{% endif %}
{% block content %}
{% endblock content %}
{% if page != "home" %}
</div>
{% endif %}
</main>
The {% endblock content %} line is always marked as missing. I guess this is because I'm never using this template on its own for a view and that the contents of the actual block are always filled by a child template, but then the coverage tool mistakenly thinks that is has not seen the endblock tag in the parent template.
I've solved it now by putting both block and endblock on the same line, but it still looks like something that can be fixed?
mschoettle, dvpashmentov, N1ark, danjac, miketheman and 2 more
Metadata
Metadata
Assignees
Labels
No labels