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)