Skip to content

Support template files that only included partials #114

Description

@mschoettle

I have a template file that includes a partial:

{% load i18n %}

{% partialdef some-partial %}
  ...
{% endpartialdef %}

And templates that include the partial as follows:

{% include "app/_partials.html#some-partial" %}

And I have tests that request URLs of views that use a template that include the partial. However, the reported coverage states lines 1-3 as missing:

project/templates/app_partials.html       6      3      0      0  50.00%   1-3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions