mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 20:20:05 +00:00
fix empty colon in query from selecting Chinese
This commit is contained in:
@@ -59,6 +59,15 @@ class TestQuery(SearxTestCase):
|
||||
self.assertEqual(len(query.languages), 0)
|
||||
self.assertFalse(query.specific)
|
||||
|
||||
def test_empty_colon_in_query(self):
|
||||
query_text = 'the : query'
|
||||
query = RawTextQuery(query_text, [])
|
||||
|
||||
self.assertEqual(query.getFullQuery(), query_text)
|
||||
self.assertEqual(len(query.query_parts), 0)
|
||||
self.assertEqual(len(query.languages), 0)
|
||||
self.assertFalse(query.specific)
|
||||
|
||||
def test_timeout_below100(self):
|
||||
query_text = '<3 the query'
|
||||
query = RawTextQuery(query_text, [])
|
||||
|
||||
Reference in New Issue
Block a user