<html lang="en">, closes #2348

This commit is contained in:
Simon Willison 2024-06-11 10:17:02 -07:00
commit 7437d40e5d
3 changed files with 4 additions and 2 deletions

View file

@ -21,6 +21,8 @@ def test_homepage(app_client_two_attached_databases):
response = app_client_two_attached_databases.get("/")
assert response.status_code == 200
assert "text/html; charset=utf-8" == response.headers["content-type"]
# Should have a html lang="en" attribute
assert '<html lang="en">' in response.text
soup = Soup(response.content, "html.parser")
assert "Datasette Fixtures" == soup.find("h1").text
assert (