From 2754b62f6385f2fde6bbd692177c015bff44fe72 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Mon, 27 Apr 2026 10:54:26 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Auto=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_sse.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_sse.py b/tests/test_sse.py index cf56044d5b..c55dba3ab4 100644 --- a/tests/test_sse.py +++ b/tests/test_sse.py @@ -285,10 +285,14 @@ def test_include_router_copies_stream_item_type(): assert response.status_code == 200 assert response.headers["content-type"] == "text/event-stream; charset=utf-8" data_lines = [ - line for line in response.text.strip().split("\n") if line.startswith("data: ") + line + for line in response.text.strip().split("\n") + if line.startswith("data: ") ] assert len(data_lines) == 1 - assert '"name":"Plumbus"' in data_lines[0] or '"name": "Plumbus"' in data_lines[0] + assert ( + '"name":"Plumbus"' in data_lines[0] or '"name": "Plumbus"' in data_lines[0] + ) # Keepalive ping tests