We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a4c3f8 commit de522adCopy full SHA for de522ad
src/tests/http/test_http.py
@@ -1,3 +1,4 @@
1
+import contextlib
2
from typing import Literal
3
4
import pytest
@@ -35,5 +36,11 @@ async def test_the_http_handler_uses_the_views_decode_json_method(
35
36
async def test_does_allow_http_options(
37
http_client: HttpClient,
38
):
39
+ with contextlib.suppress(ImportError):
40
+ from .clients.chalice import ChaliceHttpClient
41
+
42
+ if isinstance(http_client, ChaliceHttpClient):
43
+ pytest.xfail("Chalice doesn't support options requests")
44
45
response = await http_client.request(url="/graphql", method="options")
46
assert response.status_code in (200, 204)
0 commit comments