mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
<html lang="en">, closes #2348
This commit is contained in:
parent
9a3c3bfcc7
commit
7437d40e5d
3 changed files with 4 additions and 2 deletions
|
|
@ -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 }}">
|
||||
|
|
|
|||
|
|
@ -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 }}">
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue