refactor(tests): format code for better readability in test files

This commit is contained in:
Abhimanyu Saharan
2026-02-25 03:41:03 +05:30
parent 58db8be117
commit 5b0ddcc7cd
3 changed files with 7 additions and 3 deletions

View File

@@ -38,7 +38,9 @@ async def test_security_headers_middleware_appends_lowercase_raw_header_names()
sent_messages.append(message)
middleware = SecurityHeadersMiddleware(app, x_frame_options="SAMEORIGIN")
await middleware({"type": "http", "method": "GET", "path": "/", "headers": []}, lambda: None, capture)
await middleware(
{"type": "http", "method": "GET", "path": "/", "headers": []}, lambda: None, capture
)
response_start = next(
message for message in sent_messages if message.get("type") == "http.response.start"