mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 04:00:02 +00:00
Drop Python 2 (1/n): remove unicode string and url_utils
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user