diff --git a/tests/test_ws_router.py b/tests/test_ws_router.py index c79a5304e..bc3988326 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): pass # pragma: no cover @@ -279,5 +280,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"]