diff options
| author | Alexandre Flament <alex@al-f.net> | 2022-03-05 12:03:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-05 12:03:44 +0100 |
| commit | 740e3bc90f0e8672c0c003b03d07e3c08b89064c (patch) | |
| tree | 52fd8141725bc9e10b02342b7903b4a4b458eb9c /tests/unit/test_webapp.py | |
| parent | 0d86e7e4ea7020cc55e6897bbb163287ac2c1c0f (diff) | |
| parent | 55833364401ed72c30b3e85c16824a75de6b547a (diff) | |
Merge pull request #932 from dalf/static-file-hash
static files: add a hash as a query
Diffstat (limited to 'tests/unit/test_webapp.py')
| -rw-r--r-- | tests/unit/test_webapp.py | 5 |
1 files changed, 5 insertions, 0 deletions
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 = [ { |