diff options
| author | Martin Fischer <martin@push-f.com> | 2022-01-18 16:28:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-18 16:28:32 +0100 |
| commit | 96a1f79c6dcaa08a231ad3a28b8c17b677cddc9c (patch) | |
| tree | 3dbbf7b506b7e704a21b22344a01cb7c8244282d /tests/unit | |
| parent | db6f617c0f05b5e29abf176012233025f824cf7d (diff) | |
| parent | 96655cbd4ecc061eaf592f948ae2cac4192850fc (diff) | |
Merge pull request #773 from not-my-profile/typing
More typing
Diffstat (limited to 'tests/unit')
| -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( |