From f3e26eb15a54e74a375e395200bfca3d1664adaf Mon Sep 17 00:00:00 2001 From: jelle van der Waa Date: Sun, 18 Feb 2018 10:33:52 +0100 Subject: Misc fixes (#84) * Update coveragerc to exclude newly located tests There are now tests under main/tests/* etc, which should be omitted for coverage. * omit settings from coverage settings and local_settings aren't interesting for coverage, omit them. * remove leftover secure context processor The secure context processor was used to determine if the cdn served assets should be loaded over https or http. Since assets are no longer served with a cdn and the whole site is loaded over https these days, this code is dead and can be removed. * packages: Add test for flagging packages out of date Add simple test cases for flagging packages out of date, should later be improved to query the Package model for packages and use that data instead of hardcoding. --- templates/public/donate.html | 2 +- templates/public/index.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/public/donate.html b/templates/public/donate.html index d6d105a8..e68100c7 100644 --- a/templates/public/donate.html +++ b/templates/public/donate.html @@ -5,7 +5,7 @@ {% block title %}Arch Linux - Donate{% endblock %} {% block content %} -{% cache 600 donations secure %} +{% cache 600 donations %}

Donate to Arch Linux

diff --git a/templates/public/index.html b/templates/public/index.html index 9242263e..7ee4453b 100644 --- a/templates/public/index.html +++ b/templates/public/index.html @@ -8,7 +8,7 @@ {% endblock %} {% block content_left %} -{% cache 62 main-page-left secure %} +{% cache 62 main-page-left %}

A simple, lightweight distribution

@@ -105,7 +105,7 @@
{% endcache %} -{% cache 115 main-page-right secure %} +{% cache 115 main-page-right %}