mirror of
https://github.com/searxng/searxng.git
synced 2025-07-15 01:09:21 +02:00
Drop Python 2 (1/n): remove unicode string and url_utils
This commit is contained in:
parent
272158944b
commit
1022228d95
112 changed files with 388 additions and 535 deletions
|
@ -10,7 +10,7 @@ class AnswererTest(SearxTestCase):
|
|||
|
||||
def test_unicode_input(self):
|
||||
query = Mock()
|
||||
unicode_payload = u'árvíztűrő tükörfúrógép'
|
||||
unicode_payload = 'árvíztűrő tükörfúrógép'
|
||||
for answerer in answerers:
|
||||
query.query = u'{} {}'.format(answerer.keywords[0], unicode_payload)
|
||||
query.query = '{} {}'.format(answerer.keywords[0], unicode_payload)
|
||||
self.assertTrue(isinstance(answerer.answer(query), list))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue