diff options
| author | Alexandre Flament <alex@al-f.net> | 2020-11-10 10:17:49 +0100 |
|---|---|---|
| committer | Alexandre Flament <alex@al-f.net> | 2020-11-10 10:45:40 +0100 |
| commit | 8fc74d0d7b51014a24c9d2dc9442434d91c4e711 (patch) | |
| tree | e611edf112e6b9dd14886f3e2f943cab2b9e8786 /tests/unit/test_standalone_searx.py | |
| parent | aa6eaf603ff9b403dcc32adadbb1e75445f0348c (diff) | |
[mod] searx.search: EngineRef, SearchQuery: add __repr__ and __eq__ methods
Diffstat (limited to 'tests/unit/test_standalone_searx.py')
| -rw-r--r-- | tests/unit/test_standalone_searx.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/test_standalone_searx.py b/tests/unit/test_standalone_searx.py index cd1a14f46..c00f033b6 100644 --- a/tests/unit/test_standalone_searx.py +++ b/tests/unit/test_standalone_searx.py @@ -7,6 +7,7 @@ import sys from mock import Mock, patch from nose2.tools import params +from searx.search import SearchQuery from searx.testing import SearxTestCase @@ -91,7 +92,7 @@ class StandaloneSearx(SearxTestCase): args = sas.parse_argument(['rain', ]) search_q = sas.get_search_query(args) self.assertTrue(search_q) - self.assertEqual(str(search_q), 'rain;[]') + self.assertEqual(search_q, SearchQuery('rain', [], ['general'], 'all', 0, 1, None, None, None)) def test_no_parsed_url(self): """test no_parsed_url func""" |