Skip to content

Commit 07e2d22

Browse files
fix
1 parent 8113178 commit 07e2d22

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
@@ -190,12 +190,13 @@ def test_sns_multiple_records_process_each_record(self):
190190
"_datadog": {
191191
"Type": "Binary",
192192
"Value": base64.b64encode(
193-
json.dumps({"dd-pathway-ctx-base64": "context1"})
194-
.encode("utf-8")
195-
).decode("utf-8")
193+
json.dumps(
194+
{"dd-pathway-ctx-base64": "context1"}
195+
).encode("utf-8")
196+
).decode("utf-8"),
196197
}
197198
},
198-
}
199+
},
199200
},
200201
{
201202
"EventSource": "aws:sns",
@@ -206,12 +207,13 @@ def test_sns_multiple_records_process_each_record(self):
206207
"_datadog": {
207208
"Type": "Binary",
208209
"Value": base64.b64encode(
209-
json.dumps({"dd-pathway-ctx-base64": "context2"})
210-
.encode("utf-8")
211-
).decode("utf-8")
210+
json.dumps(
211+
{"dd-pathway-ctx-base64": "context2"}
212+
).encode("utf-8")
213+
).decode("utf-8"),
212214
}
213215
},
214-
}
216+
},
215217
},
216218
{
217219
"EventSource": "aws:sns",
@@ -222,12 +224,13 @@ def test_sns_multiple_records_process_each_record(self):
222224
"_datadog": {
223225
"Type": "Binary",
224226
"Value": base64.b64encode(
225-
json.dumps({"dd-pathway-ctx-base64": "context3"})
226-
.encode("utf-8")
227-
).decode("utf-8")
227+
json.dumps(
228+
{"dd-pathway-ctx-base64": "context3"}
229+
).encode("utf-8")
230+
).decode("utf-8"),
228231
}
229232
},
230-
}
233+
},
231234
},
232235
]
233236
}

0 commit comments

Comments
 (0)