Skip to content

Commit 1068766

Browse files
Fix tests
1 parent a57e222 commit 1068766

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/unit/test_app.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@
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 Function! Payload: None"
9+
assert "Payload: None" in result["body"]
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
16-
assert (
17-
result["body"]
18-
== "Hello from a sample Python Lambda Function! Payload: test_payload"
19-
)
16+
assert "test_payload" in result["body"]

0 commit comments

Comments
 (0)