mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-03 11:07:07 -05:00 
			
		
		
		
	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>
		
	
			
		
			
				
	
	
		
			16 lines
		
	
	
		
			457 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 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))
 |