mirror of
https://github.com/searx/searx
synced 2025-01-19 12:09:45 +01:00
Merge pull request #3209 from kvch/update-flask
Update flask and jinja2 to fix build
This commit is contained in:
commit
ba95fd570b
@ -1,8 +1,8 @@
|
||||
certifi==2021.10.8
|
||||
babel==2.9.1
|
||||
flask-babel==2.0.0
|
||||
flask==2.0.2
|
||||
jinja2==3.0.3
|
||||
flask==2.1.1
|
||||
jinja2==3.1.1
|
||||
lxml==4.7.1
|
||||
pygments==2.8.0
|
||||
python-dateutil==2.8.2
|
||||
|
@ -90,12 +90,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': ''})
|
||||
|
Loading…
Reference in New Issue
Block a user