Make page titles match <h1> tags on static pages

This commit fixes pages where this isn’t the case, and modifies the test
to use the `client_request` fixture, which checks for this mismatch.
This commit is contained in:
Chris Hill-Scott
2017-12-01 09:46:46 +00:00
parent dcbfe5a834
commit fd908671b0
3 changed files with 5 additions and 9 deletions

View File

@@ -35,14 +35,10 @@ def test_logged_in_user_redirects_to_choose_service(
'features', 'callbacks', 'documentation', 'security'
])
def test_static_pages(
client,
client_request,
view,
):
response = client.get(url_for('main.{}'.format(view)))
assert response.status_code == 200
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
page = client_request.get('main.{}'.format(view))
assert not page.select_one('meta[name=description]')