Skip to content

Commit 96a2d90

Browse files
fix
1 parent 815706e commit 96a2d90

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

tests/test_dsm.py

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,13 @@ def test_sns_multiple_records_process_each_record(self):
187187
"_datadog": {
188188
"Type": "Binary",
189189
"Value": base64.b64encode(
190-
json.dumps({"dd-pathway-ctx-base64": "context1"})
191-
.encode("utf-8")
192-
).decode("utf-8")
190+
json.dumps(
191+
{"dd-pathway-ctx-base64": "context1"}
192+
).encode("utf-8")
193+
).decode("utf-8"),
193194
}
194195
},
195-
}
196+
},
196197
},
197198
{
198199
"EventSource": "aws:sns",
@@ -203,12 +204,13 @@ def test_sns_multiple_records_process_each_record(self):
203204
"_datadog": {
204205
"Type": "Binary",
205206
"Value": base64.b64encode(
206-
json.dumps({"dd-pathway-ctx-base64": "context2"})
207-
.encode("utf-8")
208-
).decode("utf-8")
207+
json.dumps(
208+
{"dd-pathway-ctx-base64": "context2"}
209+
).encode("utf-8")
210+
).decode("utf-8"),
209211
}
210212
},
211-
}
213+
},
212214
},
213215
{
214216
"EventSource": "aws:sns",
@@ -219,12 +221,13 @@ def test_sns_multiple_records_process_each_record(self):
219221
"_datadog": {
220222
"Type": "Binary",
221223
"Value": base64.b64encode(
222-
json.dumps({"dd-pathway-ctx-base64": "context3"})
223-
.encode("utf-8")
224-
).decode("utf-8")
224+
json.dumps(
225+
{"dd-pathway-ctx-base64": "context3"}
226+
).encode("utf-8")
227+
).decode("utf-8"),
225228
}
226229
},
227-
}
230+
},
228231
},
229232
]
230233
}

0 commit comments

Comments
 (0)