[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
This commit is contained in:
Alexandre Flament 2020-10-03 15:02:44 +02:00 committed by Alexandre FLAMENT
parent 927aa71133
commit 1c7d8815fb
3 changed files with 38 additions and 14 deletions

View file

@ -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 = [
{