mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Applied Black, refs #1922
This commit is contained in:
parent
f0fadc28dd
commit
31d6a0bc5e
1 changed files with 4 additions and 1 deletions
|
|
@ -912,7 +912,10 @@ def test_cors(
|
||||||
response = app_client_with_cors.get(path)
|
response = app_client_with_cors.get(path)
|
||||||
assert response.status == status_code
|
assert response.status == status_code
|
||||||
assert response.headers["Access-Control-Allow-Origin"] == "*"
|
assert response.headers["Access-Control-Allow-Origin"] == "*"
|
||||||
assert response.headers["Access-Control-Allow-Headers"] == "Authorization, Content-Type"
|
assert (
|
||||||
|
response.headers["Access-Control-Allow-Headers"]
|
||||||
|
== "Authorization, Content-Type"
|
||||||
|
)
|
||||||
assert response.headers["Access-Control-Expose-Headers"] == "Link"
|
assert response.headers["Access-Control-Expose-Headers"] == "Link"
|
||||||
assert (
|
assert (
|
||||||
response.headers["Access-Control-Allow-Methods"] == "GET, POST, HEAD, OPTIONS"
|
response.headers["Access-Control-Allow-Methods"] == "GET, POST, HEAD, OPTIONS"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue