mirror of
https://github.com/searxng/searxng.git
synced 2024-10-31 22:28:52 +00:00
3d96a9839a
This patch was generated by black [1]:: make format.python [1] https://github.com/psf/black Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
15 lines
457 B
Python
15 lines
457 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from mock import Mock
|
|
|
|
from searx.answerers import answerers
|
|
from tests import SearxTestCase
|
|
|
|
|
|
class AnswererTest(SearxTestCase):
|
|
def test_unicode_input(self):
|
|
query = Mock()
|
|
unicode_payload = 'árvíztűrő tükörfúrógép'
|
|
for answerer in answerers:
|
|
query.query = '{} {}'.format(answerer.keywords[0], unicode_payload)
|
|
self.assertTrue(isinstance(answerer.answer(query), list))
|