File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -107,10 +107,10 @@ def test_handle_sns_sqs_trigger_event_json_body(): # noqa: F811
107
107
108
108
109
109
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
111
111
event_dict = load_event ("snsSqsEvent.json" )
112
112
payload = json .loads (event_dict ["Records" ][0 ]["body" ])
113
- assert payload .pop ("SigningCertURL" ) is not None
113
+ payload .pop ("SigningCertURL" )
114
114
event_dict ["Records" ][0 ]["body" ] = json .dumps (payload )
115
115
116
116
# WHEN parsing the payload
@@ -120,10 +120,10 @@ def test_handle_sns_sqs_trigger_event_json_body_missing_signing_cert_url():
120
120
121
121
122
122
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
124
124
event_dict = load_event ("snsSqsEvent.json" )
125
125
payload = json .loads (event_dict ["Records" ][0 ]["body" ])
126
- assert payload .pop ("UnsubscribeURL" ) is not None
126
+ payload .pop ("UnsubscribeURL" )
127
127
event_dict ["Records" ][0 ]["body" ] = json .dumps (payload )
128
128
129
129
# WHEN parsing the payload
You can’t perform that action at this time.
0 commit comments