We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a57e222 commit 1068766Copy full SHA for 1068766
test/unit/test_app.py
@@ -6,14 +6,11 @@
6
def test_primary_handler():
7
result = app.lambda_handler(None, None)
8
assert result["statusCode"] == 200
9
- assert result["body"] == "Hello from a sample Python Lambda Function! Payload: None"
+ assert "Payload: None" in result["body"]
10
11
12
def test_primary_handler_with_payload():
13
with patch.object(app, "PAYLOAD", "test_payload"):
14
15
16
- assert (
17
- result["body"]
18
- == "Hello from a sample Python Lambda Function! Payload: test_payload"
19
- )
+ assert "test_payload" in result["body"]
0 commit comments