From a86836ef3621ca31f64f9995b7161205c5e17853 Mon Sep 17 00:00:00 2001 From: Dan Plischke Date: Thu, 12 Dec 2024 14:52:16 +0100 Subject: [PATCH] update requirements.txt in integration tests to fix Starlette TestClient error, format long lines --- ariadne/contrib/sse.py | 6 +++-- tests_integrations/fastapi/requirements.txt | 25 ++++++++++++--------- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/ariadne/contrib/sse.py b/ariadne/contrib/sse.py index e6b4be0c..575f3db3 100644 --- a/ariadne/contrib/sse.py +++ b/ariadne/contrib/sse.py @@ -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, } @@ -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") diff --git a/tests_integrations/fastapi/requirements.txt b/tests_integrations/fastapi/requirements.txt index b039b774..7df45a9f 100644 --- a/tests_integrations/fastapi/requirements.txt +++ b/tests_integrations/fastapi/requirements.txt @@ -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