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

pull/1930/head
Simon Willison 2022-11-30 10:29:48 -08:00
rodzic 48725bb4ea
commit 4c18730e71
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

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

Wyświetl plik

@ -15,7 +15,7 @@ async def datasette(app_client):
"method,path,expected_status",
[
("get", "/", 200),
("options", "/", 405),
("options", "/", 200),
("head", "/", 200),
("put", "/", 405),
("patch", "/", 405),