mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Update tests to export 200 for OPTIONS calls, refs #1922
This commit is contained in:
parent
48725bb4ea
commit
4c18730e71
2 changed files with 3 additions and 3 deletions
|
|
@ -55,8 +55,8 @@ def test_http_head(app_client):
|
||||||
|
|
||||||
def test_homepage_options(app_client):
|
def test_homepage_options(app_client):
|
||||||
response = app_client.get("/", method="OPTIONS")
|
response = app_client.get("/", method="OPTIONS")
|
||||||
assert response.status == 405
|
assert response.status == 200
|
||||||
assert response.text == "Method not allowed"
|
assert response.text == "ok"
|
||||||
|
|
||||||
|
|
||||||
def test_favicon(app_client):
|
def test_favicon(app_client):
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ async def datasette(app_client):
|
||||||
"method,path,expected_status",
|
"method,path,expected_status",
|
||||||
[
|
[
|
||||||
("get", "/", 200),
|
("get", "/", 200),
|
||||||
("options", "/", 405),
|
("options", "/", 200),
|
||||||
("head", "/", 200),
|
("head", "/", 200),
|
||||||
("put", "/", 405),
|
("put", "/", 405),
|
||||||
("patch", "/", 405),
|
("patch", "/", 405),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue