Applied Black, refs #1922

pull/1930/head
Simon Willison 2022-11-30 15:17:39 -08:00
rodzic f0fadc28dd
commit 31d6a0bc5e
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -912,7 +912,10 @@ def test_cors(
response = app_client_with_cors.get(path)
assert response.status == status_code
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-Allow-Methods"] == "GET, POST, HEAD, OPTIONS"