Skip to content

Commit a7f0562

Browse files
fix(parser): make tests more explicit
Co-authored-by: Heitor Lessa <[email protected]>
1 parent 25e235d commit a7f0562

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/functional/parser/test_sns.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ def test_handle_sns_sqs_trigger_event_json_body(): # noqa: F811
107107

108108

109109
def test_handle_sns_sqs_trigger_event_json_body_missing_signing_cert_url():
110-
# GIVEN an event with a missing SigningCertURL
110+
# GIVEN an event is tampered with a missing SigningCertURL
111111
event_dict = load_event("snsSqsEvent.json")
112112
payload = json.loads(event_dict["Records"][0]["body"])
113-
assert payload.pop("SigningCertURL") is not None
113+
payload.pop("SigningCertURL")
114114
event_dict["Records"][0]["body"] = json.dumps(payload)
115115

116116
# WHEN parsing the payload
@@ -120,10 +120,10 @@ def test_handle_sns_sqs_trigger_event_json_body_missing_signing_cert_url():
120120

121121

122122
def test_handle_sns_sqs_trigger_event_json_body_missing_unsubscribe_url():
123-
# GIVEN an event with a missing UnsubscribeURL
123+
# GIVEN an event is tampered with a missing UnsubscribeURL
124124
event_dict = load_event("snsSqsEvent.json")
125125
payload = json.loads(event_dict["Records"][0]["body"])
126-
assert payload.pop("UnsubscribeURL") is not None
126+
payload.pop("UnsubscribeURL")
127127
event_dict["Records"][0]["body"] = json.dumps(payload)
128128

129129
# WHEN parsing the payload

0 commit comments

Comments
 (0)