diff options
author | Martin Fischer <martin@push-f.com> | 2022-01-17 08:06:31 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-01-17 11:42:48 +0100 |
commit | fdf562bc32028cc0a2d3da1bad02a84da1e6a1d6 (patch) | |
tree | b6095e5721ee680463703eb6a043d94fdcbd0853 /tests | |
parent | 1ed618222f17e205b684f6ef63cdaa470beb0dcb (diff) | |
download | searxng-fdf562bc32028cc0a2d3da1bad02a84da1e6a1d6.tar.gz searxng-fdf562bc32028cc0a2d3da1bad02a84da1e6a1d6.zip |
[typing] add results.Timing
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/test_webapp.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py index 920a346a5..fd7c72e60 100644 --- a/tests/unit/test_webapp.py +++ b/tests/unit/test_webapp.py @@ -3,6 +3,7 @@ import json from urllib.parse import ParseResult from mock import Mock +from searx.results import Timing import searx.search.processors from searx.search import Search @@ -46,7 +47,10 @@ class ViewsTestCase(SearxTestCase): }, ] - timings = [{'engine': 'startpage', 'total': 0.8, 'load': 0.7}, {'engine': 'youtube', 'total': 0.9, 'load': 0.6}] + timings = [ + Timing(engine='startpage', total=0.8, load=0.7), + Timing(engine='youtube', total=0.9, load=0.6), + ] def search_mock(search_self, *args): search_self.result_container = Mock( |