Skip to content

Commit

Permalink
update requirements.txt in integration tests to fix Starlette TestCli…
Browse files Browse the repository at this point in the history
…ent error, format long lines
  • Loading branch information
danplischke committed Dec 12, 2024
1 parent eeea4f1 commit a86836e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
6 changes: 4 additions & 2 deletions ariadne/contrib/sse.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ async def _ping(self, send: Send) -> None:
await send(
{
"type": "http.response.body",
# always encode as utf-8 as per https://html.spec.whatwg.org/multipage/server-sent-events.html#sse-processing-model
# always encode as utf-8 as per
# https://html.spec.whatwg.org/multipage/server-sent-events.html#sse-processing-model
"body": ":\r\n\r\n".encode("utf-8"),
"more_body": True,
}
Expand Down Expand Up @@ -276,7 +277,8 @@ def encode_event(event: GraphQLServerSentEvent) -> bytes:
# Required arguments
`event`: the GraphQLServerSentEvent object
"""
# always encode as utf-8 as per https://html.spec.whatwg.org/multipage/server-sent-events.html#sse-processing-model
# always encode as utf-8 as per
# https://html.spec.whatwg.org/multipage/server-sent-events.html#sse-processing-model
return str(event).encode("utf-8")


Expand Down
25 changes: 15 additions & 10 deletions tests_integrations/fastapi/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --output-file=requirements.txt requirements.in
#
annotated-types==0.6.0
--extra-index-url https://pypi:PWcL2IzdI1oHWfkNfMSnBiLp8@pypi.dtlab.int.bayer.com/simple/

annotated-types==0.7.0
# via pydantic
anyio==3.7.1
anyio==4.7.0
# via starlette
fastapi==0.109.1
exceptiongroup==1.2.2
# via anyio
fastapi==0.115.6
# via -r requirements.in
idna==3.7
idna==3.10
# via anyio
pydantic==2.4.2
pydantic==2.10.3
# via fastapi
pydantic-core==2.10.1
pydantic-core==2.27.1
# via pydantic
sniffio==1.3.0
sniffio==1.3.1
# via anyio
starlette==0.35.1
starlette==0.41.3
# via fastapi
typing-extensions==4.8.0
typing-extensions==4.12.2
# via
# anyio
# fastapi
# pydantic
# pydantic-core

0 comments on commit a86836e

Please sign in to comment.