<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

@ -1,5 +1,5 @@
{% import "_crumbs.html" as crumbs with context %}<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" href="{{ urls.static('app.css') }}?{{ app_css_hash }}">

View file

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Datasette: Pattern Portfolio</title>
<link rel="stylesheet" href="{{ base_url }}-/static/app.css?{{ app_css_hash }}">

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 (