From c6f95103c2d7ac58c991402c8d4da15274ab8ec2 Mon Sep 17 00:00:00 2001 From: reton2 Date: Wed, 1 May 2024 12:07:31 +0100 Subject: [PATCH] chore: improve coverage, remove unused line --- tests/test_endpoint_decorator.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_endpoint_decorator.py b/tests/test_endpoint_decorator.py index 33f03ec54..ba99fb70c 100644 --- a/tests/test_endpoint_decorator.py +++ b/tests/test_endpoint_decorator.py @@ -32,10 +32,8 @@ def protect(endpoint: Callable[..., Any]): class CustomAPIRoute(APIRoute): def __init__( - self, path: str, endpoint: Callable[..., Any], dependencies=None, **kwargs + self, path: str, endpoint: Callable[..., Any], dependencies, **kwargs ) -> None: - if dependencies is None: - dependencies = [] if isinstance(endpoint, EndpointWrapper) and endpoint.protected: dependencies.append(Depends(dummy_secruity_check)) super().__init__(path, endpoint, dependencies=dependencies, **kwargs)