diff options
author | Alexandre Flament <alex@al-f.net> | 2017-01-13 22:15:11 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2017-01-20 15:40:38 +0100 |
commit | 7fdfeca3a43e0e2bd8ef2dcb27cca7745edf596a (patch) | |
tree | c0f79e059929c184d3d368c2bc8bb20293b65061 /tests | |
parent | 57149661e4f90e5ad3a9a4c36bb5f31a1c7ec6aa (diff) | |
download | searxng-7fdfeca3a43e0e2bd8ef2dcb27cca7745edf596a.tar.gz searxng-7fdfeca3a43e0e2bd8ef2dcb27cca7745edf596a.zip |
[mod] add a __common__ template that can't be selected but that provides a common place for shared templates.
What has been moved into this template :
* opensearch*.xml is always the same whatever the themes.
* the text inside */about.html
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/test_webapp.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py index ac5bf8c9d..5e5f0b4bf 100644 --- a/tests/unit/test_webapp.py +++ b/tests/unit/test_webapp.py @@ -46,6 +46,8 @@ class ViewsTestCase(SearxTestCase): Search.search = search_mock def get_current_theme_name_mock(override=None): + if override: + return override return 'legacy' webapp.get_current_theme_name = get_current_theme_name_mock |