Skip to content

Commit

Permalink
Run ruff formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwaidan00 committed Dec 19, 2024
1 parent beb64ae commit 423946e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ariadne_lambda/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ async def get_context_for_request(
context = await context
return context

return self.context_value or {"request": request}
return self.context_value or {"request": request}
9 changes: 7 additions & 2 deletions tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@ def test_api_v2_event(api_gateway_v2_event_payload):

def test_api_v2_event_lambda_url(api_gateway_v2_lambda_url_event_payload):
request = Request.create_from_event(api_gateway_v2_lambda_url_event_payload)
assert request.method == api_gateway_v2_lambda_url_event_payload["requestContext"]["http"]["method"]
assert request.path == api_gateway_v2_lambda_url_event_payload["requestContext"]["http"]["path"]
assert (
request.method
== api_gateway_v2_lambda_url_event_payload["requestContext"]["http"]["method"]
)
assert (
request.path == api_gateway_v2_lambda_url_event_payload["requestContext"]["http"]["path"]
)
assert request.body == ""
assert request.is_base64_encoded is False
assert request.headers == api_gateway_v2_lambda_url_event_payload["headers"]
Expand Down

0 comments on commit 423946e

Please sign in to comment.