Skip to content

Commit d096f68

Browse files
Tweak verbiage
1 parent 07de2b8 commit d096f68

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/function/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
def lambda_handler(event, context):
77
return {
88
"statusCode": 200,
9-
"body": f"Hello from a sample Python Lambda! Payload: {PAYLOAD}",
9+
"body": f"Hello from a sample Python Lambda Function! Payload: {PAYLOAD}",
1010
}

test/unit/test_app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
def test_primary_handler():
77
result = app.lambda_handler(None, None)
88
assert result["statusCode"] == 200
9-
assert result["body"] == "Hello from a sample Python Lambda! Payload: None"
9+
assert result["body"] == "Hello from a sample Python Lambda Function! Payload: None"
1010

1111

1212
def test_primary_handler_with_payload():
1313
with patch.object(app, "PAYLOAD", "test_payload"):
1414
result = app.lambda_handler(None, None)
1515
assert result["statusCode"] == 200
1616
assert (
17-
result["body"] == "Hello from a sample Python Lambda! Payload: test_payload"
17+
result["body"]
18+
== "Hello from a sample Python Lambda Function! Payload: test_payload"
1819
)

0 commit comments

Comments
 (0)