diff options
author | Alexandre Flament <alex@al-f.net> | 2017-01-27 13:47:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-27 13:47:59 +0000 |
commit | e67dfaaac7991b299dd9c33ae69e7028cd8f6589 (patch) | |
tree | 506ed1dd4a527e37c902035d84215ed2be2577d9 /tests | |
parent | 7a16aca346c14994f304a6961c55b63ab260265a (diff) | |
parent | ee1d44caf9bb9b0fb1b3bafbcbff74486b5449e8 (diff) | |
download | searxng-e67dfaaac7991b299dd9c33ae69e7028cd8f6589.tar.gz searxng-e67dfaaac7991b299dd9c33ae69e7028cd8f6589.zip |
Merge branch 'master' into flask_perimeter
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/test_webapp.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py index 1ef1f56c3..5e5f0b4bf 100644 --- a/tests/unit/test_webapp.py +++ b/tests/unit/test_webapp.py @@ -36,6 +36,7 @@ class ViewsTestCase(SearxTestCase): def search_mock(search_self, *args): search_self.result_container = Mock(get_ordered_results=lambda: self.test_results, answers=set(), + corrections=set(), suggestions=set(), infoboxes=[], results=self.test_results, @@ -45,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 |