🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

This commit is contained in:
pre-commit-ci[bot] 2025-04-18 21:01:40 +00:00
parent 0969b08abe
commit 87749c1466
1 changed files with 3 additions and 2 deletions

View File

@ -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"]