We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bab894 commit 4c4e4faCopy full SHA for 4c4e4fa
backend/tests/test_lambda_function.py
@@ -18,6 +18,8 @@ class MockLambdaContext:
18
aws_request_id: str = "test-request-id"
19
log_group_name: str = "/aws/lambda/test"
20
log_stream_name: str = "test-stream"
21
+ identity: None = None
22
+ client_context: None = None
23
24
def get_remaining_time_in_millis(self) -> int:
25
return 30000
@@ -121,7 +123,7 @@ def test_handler_with_api_gateway_event(self):
121
123
"isBase64Encoded": False,
122
124
}
125
- result = handler(event, MockLambdaContext())
126
+ result = handler(event, MockLambdaContext()) # type: ignore[arg-type]
127
assert result["statusCode"] == 200
128
body = json.loads(result["body"])
129
assert body["status"] == "ok"
0 commit comments