Skip to content

Commit de522ad

Browse files
committed
Fix tests
1 parent 3a4c3f8 commit de522ad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/tests/http/test_http.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import contextlib
12
from typing import Literal
23

34
import pytest
@@ -35,5 +36,11 @@ async def test_the_http_handler_uses_the_views_decode_json_method(
3536
async def test_does_allow_http_options(
3637
http_client: HttpClient,
3738
):
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+
3845
response = await http_client.request(url="/graphql", method="options")
3946
assert response.status_code in (200, 204)

0 commit comments

Comments
 (0)