From 87749c1466c3d50deb17bae57098a44135948001 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 18 Apr 2025 21:01:40 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20format?= =?UTF-8?q?=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_ws_router.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_ws_router.py b/tests/test_ws_router.py index 7c0fc7ab3..0fc2527bb 100644 --- a/tests/test_ws_router.py +++ b/tests/test_ws_router.py @@ -103,7 +103,8 @@ class CustomError(Exception): async def router_ws_custom_error(websocket: WebSocket): raise CustomError() -@router.websocket("/test_tags/", name='test-tags', tags=["test"]) + +@router.websocket("/test_tags/", name="test-tags", tags=["test"]) async def router_ws_test_tags(websocket: WebSocket): await websocket.accept() await websocket.send_text("Hello, router with tags!") @@ -281,5 +282,5 @@ def test_websocket_tags(): """ Verify that it is possible to add tags to websocket routes """ - route = next(route for route in app.routes if route.name == 'test-tags') + route = next(route for route in app.routes if route.name == "test-tags") assert route.tags == ["test"]