Skip to content

Commit 21de2dd

Browse files
floxayprovinzkraut
authored andcommitted
test: adjust cookies in logging middleware test
1 parent 46afdc2 commit 21de2dd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit/test_middleware/test_logging_middleware.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ def test_logging_middleware_struct_logger(handler: HTTPRouteHandler) -> None:
113113
}
114114
assert cap_logs[1] == {
115115
"status_code": 200,
116-
"cookies": {"first-cookie": "abc", "Path": "/", "SameSite": "lax", "second-cookie": "xxx"},
116+
"cookies": [
117+
{"first-cookie": "abc", "Path": "/", "SameSite": "lax"},
118+
{"second-cookie": "xxx", "Path": "/", "SameSite": "lax"},
119+
],
117120
"headers": {"token": "123", "regular": "abc", "content-length": "17", "content-type": "application/json"},
118121
"body": '{"hello":"world"}',
119122
"event": "HTTP Response",

0 commit comments

Comments
 (0)