summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/test_query.py2
-rw-r--r--tests/unit/test_webapp.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/test_query.py b/tests/unit/test_query.py
index 05fcafe30..0bbf8b4ba 100644
--- a/tests/unit/test_query.py
+++ b/tests/unit/test_query.py
@@ -130,7 +130,7 @@ class TestLanguageParser(SearxTestCase):
self.assertEqual(query.autocomplete_list, [":hu-hu"])
query = RawTextQuery(':v', [])
- self.assertEqual(query.autocomplete_list, [":vi", ":tiếng việt"])
+ self.assertEqual(query.autocomplete_list, [':vi', ':tiếng việt', ':việt_nam'])
class TestTimeoutParser(SearxTestCase):
diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py
index d3eaa6a58..bb09e591e 100644
--- a/tests/unit/test_webapp.py
+++ b/tests/unit/test_webapp.py
@@ -97,12 +97,12 @@ class ViewsTestCase(SearxTestCase):
def test_index_html_post(self):
result = self.app.post('/', data={'q': 'test'})
self.assertEqual(result.status_code, 308)
- self.assertEqual(result.location, 'http://localhost/search')
+ self.assertEqual(result.location, '/search')
def test_index_html_get(self):
result = self.app.post('/?q=test')
self.assertEqual(result.status_code, 308)
- self.assertEqual(result.location, 'http://localhost/search?q=test')
+ self.assertEqual(result.location, '/search?q=test')
def test_search_empty_html(self):
result = self.app.post('/search', data={'q': ''})