From 1c7d8815fb54dd37ed6765560c223cb93976b6f4 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sat, 3 Oct 2020 15:02:44 +0200 Subject: [mod] URL for the static file contains the sha1 * allow to cache the static file forever * avoid bugs when the static files are updated but not reloaded --- tests/unit/test_webapp.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py index aed6f2dd4..872b8d014 100644 --- a/tests/unit/test_webapp.py +++ b/tests/unit/test_webapp.py @@ -23,6 +23,11 @@ class ViewsTestCase(SearxTestCase): webapp.app.config['TESTING'] = True # to get better error messages self.app = webapp.app.test_client() + # remove sha for the static file + # so the tests don't have to care about the changing URLs + for k in webapp.static_files: + webapp.static_files[k] = None + # set some defaults test_results = [ { -- cgit v1.2.3