Skip to content

Commit 423946e

Browse files
committed
Run ruff formatter
1 parent beb64ae commit 423946e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

ariadne_lambda/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ async def get_context_for_request(
5252
context = await context
5353
return context
5454

55-
return self.context_value or {"request": request}
55+
return self.context_value or {"request": request}

tests/test_schema.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,13 @@ def test_api_v2_event(api_gateway_v2_event_payload):
2626

2727
def test_api_v2_event_lambda_url(api_gateway_v2_lambda_url_event_payload):
2828
request = Request.create_from_event(api_gateway_v2_lambda_url_event_payload)
29-
assert request.method == api_gateway_v2_lambda_url_event_payload["requestContext"]["http"]["method"]
30-
assert request.path == api_gateway_v2_lambda_url_event_payload["requestContext"]["http"]["path"]
29+
assert (
30+
request.method
31+
== api_gateway_v2_lambda_url_event_payload["requestContext"]["http"]["method"]
32+
)
33+
assert (
34+
request.path == api_gateway_v2_lambda_url_event_payload["requestContext"]["http"]["path"]
35+
)
3136
assert request.body == ""
3237
assert request.is_base64_encoded is False
3338
assert request.headers == api_gateway_v2_lambda_url_event_payload["headers"]

0 commit comments

Comments
 (0)