diff --git a/requirements-dev.txt b/requirements-dev.txt index 970c3811e4b..13134d16e20 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,7 +1,7 @@ mock==4.0.3 nose2[coverage_plugin]==0.11.0 cov-core==1.15.0 -black==22.1.0 +black==22.3.0 pycodestyle==2.8.0 pylint==2.13.0 splinter==0.17.0 diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py index d3eaa6a58d7..bb09e591ea0 100644 --- a/tests/unit/test_webapp.py +++ b/tests/unit/test_webapp.py @@ -97,12 +97,12 @@ def test_index_empty(self): 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': ''})