mirror of
https://github.com/searxng/searxng.git
synced 2025-08-02 01:52:21 +02:00
[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:
parent
927aa71133
commit
1c7d8815fb
3 changed files with 38 additions and 14 deletions
|
@ -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 = [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue