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
|
|
@ -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