Implemented HEAD requests, removed Sanic InvalidUsage

This commit is contained in:
Simon Willison 2019-06-23 15:06:43 -07:00
commit 79950c9643
4 changed files with 15 additions and 9 deletions

View file

@ -46,6 +46,11 @@ def test_homepage(app_client_two_attached_databases):
] == table_links
def test_http_head(app_client):
response = app_client.get("/", method="HEAD")
assert response.status == 200
def test_static(app_client):
response = app_client.get("/-/static/app2.css")
assert response.status == 404