From 67a7425f99779e7d79b9dad6fd179916338b745f Mon Sep 17 00:00:00 2001 From: KonstantAnxiety Date: Thu, 12 Dec 2024 00:48:15 +0300 Subject: [PATCH] fix werkzeug todo --- .../dl_api_commons_tests/unit/aio/test_common_logging.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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,