Skip to content

Conversation

@rebkwok
Copy link
Contributor

@rebkwok rebkwok commented Feb 12, 2024

Adds coverage for templates, using the existing django_coverage_plugin, but with a tweak to handle slippers components.
This means we (hopefully temporarily) have our own fork of the plugin, until this PR gets in. Without it, any slippers component end tags that are on their own line - which is lots of them - get marked as uncovered.

As a result of writing the tests for the uncovered template lines, I found a breadcrumbs block in the login template that was unused, and noticed that if you go to the login page when you're already logged in, you weren't getting redirect anywhere, you just got the login page again.

@rebkwok rebkwok force-pushed the template-coverage branch 2 times, most recently from 4c687cf to fca2aad Compare February 22, 2024 14:23
@rebkwok rebkwok marked this pull request as ready for review February 22, 2024 14:30
@rebkwok rebkwok merged commit a63fd5d into main Feb 22, 2024
@rebkwok rebkwok deleted the template-coverage branch February 22, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants