blob: 716b544de68cd6a2a4e6961f16dd3985a67e9b81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# SPDX-License-Identifier: AGPL-3.0-or-later
# pylint: disable=missing-module-docstring
from mock import Mock
from parameterized import parameterized
from searx.answerers import answerers
from tests import SearxTestCase
class AnswererTest(SearxTestCase): # pylint: disable=missing-class-docstring
@parameterized.expand(answerers)
def test_unicode_input(self, answerer):
query = Mock()
unicode_payload = 'árvíztűrő tükörfúrógép'
query.query = '{} {}'.format(answerer.keywords[0], unicode_payload)
self.assertIsInstance(answerer.answer(query), list)
|