kopia lustrzana https://github.com/simonw/datasette
Update tests to export 200 for OPTIONS calls, refs #1922
rodzic
48725bb4ea
commit
4c18730e71
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue