mirror of
				https://github.com/searxng/searxng.git
				synced 2025-10-28 09:12:36 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			466 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			466 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # -*- coding: utf-8 -*-
 | |
| 
 | |
| from mock import Mock
 | |
| 
 | |
| from searx.answerers import answerers
 | |
| from searx.testing 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))
 |