From 1b12e7ae10de08677797cecfe31ce860b2c6734b Mon Sep 17 00:00:00 2001 From: Jens Kleineheismann Date: Tue, 26 Mar 2019 10:12:51 +0100 Subject: [PATCH] FIX: dav_base: fix wrong static base url in TemplatesTestCase. --- dav_base/tests/test_templates.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/dav_base/tests/test_templates.py b/dav_base/tests/test_templates.py index b8b193c..7220d10 100644 --- a/dav_base/tests/test_templates.py +++ b/dav_base/tests/test_templates.py @@ -1,3 +1,4 @@ +from django.conf import settings from django.test import SimpleTestCase @@ -14,24 +15,27 @@ class TemplatesTestCase(SimpleTestCase): def test_html_head(self): response = self.response_from_root_view + static_url = settings.STATIC_URL + html_needles = ( # favicon - '', + '', # bootstrap css - '', + '', # css file for jquery.dataTables.js - '', + '', # local css file - '', + '', # jquery.js file - '', + '', # jquery.dataTables.js file - '', + '', # bootstrap js file - '', + '', ) for needle in html_needles: + needle = needle.format(static_url=static_url) self.assertInHTML(needle, response.content) def test_page_footer(self):