diff --git a/lib/dl_api_commons/dl_api_commons_tests/unit/aio/test_common_logging.py b/lib/dl_api_commons/dl_api_commons_tests/unit/aio/test_common_logging.py index d66ec193c..ae84f6708 100644 --- a/lib/dl_api_commons/dl_api_commons_tests/unit/aio/test_common_logging.py +++ b/lib/dl_api_commons/dl_api_commons_tests/unit/aio/test_common_logging.py @@ -1,6 +1,5 @@ from __future__ import annotations -import importlib.metadata import logging import os from typing import Any @@ -136,12 +135,7 @@ def home(): client = app.test_client() for c_name, c_val in request_cookies.items(): - # TODO: after migration to werkzeug 3.0.3+, replace this condition with - # client.set_cookie(key=c_name, value=c_val) - if importlib.metadata.version("werkzeug") == "3.0.3": - client.set_cookie(key=c_name, value=c_val) - else: - client.set_cookie(server_name="localhost", key=c_name, value=c_val) + client.set_cookie(key=c_name, value=c_val) resp = client.get( request_path,