Update tests to export 200 for OPTIONS calls, refs #1922

This commit is contained in:
Simon Willison 2022-11-30 10:29:48 -08:00
commit 4c18730e71
2 changed files with 3 additions and 3 deletions

View file

@ -55,8 +55,8 @@ def test_http_head(app_client):
def test_homepage_options(app_client):
response = app_client.get("/", method="OPTIONS")
assert response.status == 405
assert response.text == "Method not allowed"
assert response.status == 200
assert response.text == "ok"
def test_favicon(app_client):