From 21de2dde5c50b05a956fa562371bef3404301abe Mon Sep 17 00:00:00 2001 From: Huba Tuba <57007485+floxay@users.noreply.github.com> Date: Mon, 29 Jan 2024 02:57:53 +0100 Subject: [PATCH] test: adjust cookies in logging middleware test --- tests/unit/test_middleware/test_logging_middleware.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_middleware/test_logging_middleware.py b/tests/unit/test_middleware/test_logging_middleware.py index 35f9f6ca47..f9391ca7a2 100644 --- a/tests/unit/test_middleware/test_logging_middleware.py +++ b/tests/unit/test_middleware/test_logging_middleware.py @@ -113,7 +113,10 @@ def test_logging_middleware_struct_logger(handler: HTTPRouteHandler) -> None: } assert cap_logs[1] == { "status_code": 200, - "cookies": {"first-cookie": "abc", "Path": "/", "SameSite": "lax", "second-cookie": "xxx"}, + "cookies": [ + {"first-cookie": "abc", "Path": "/", "SameSite": "lax"}, + {"second-cookie": "xxx", "Path": "/", "SameSite": "lax"}, + ], "headers": {"token": "123", "regular": "abc", "content-length": "17", "content-type": "application/json"}, "body": '{"hello":"world"}', "event": "HTTP Response",