Merge pull request #3209 from kvch/update-flask

Update flask and jinja2 to fix build
This commit is contained in:
Noémi Ványi 2022-04-13 20:55:30 +02:00 committed by GitHub
commit ba95fd570b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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': ''})