Skip to content

Commit

Permalink
test: adjust cookies in logging middleware test
Browse files Browse the repository at this point in the history
  • Loading branch information
floxay authored and provinzkraut committed Apr 7, 2024
1 parent 46afdc2 commit 21de2dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit/test_middleware/test_logging_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 21de2dd

Please sign in to comment.