Use correct content-type header, refs #272

This commit is contained in:
Simon Willison 2019-06-23 12:52:10 -07:00
commit 1e8419bde4
6 changed files with 12 additions and 5 deletions

View file

@ -17,6 +17,7 @@ import urllib.parse
def test_homepage(app_client_two_attached_databases):
response = app_client_two_attached_databases.get("/")
assert response.status == 200
assert "text/html; charset=utf-8" == response.headers["content-type"]
soup = Soup(response.body, "html.parser")
assert "Datasette Fixtures" == soup.find("h1").text
assert (