Skip to content

Commit 09f6af6

Browse files
committed
Fix another suggestion from PR review
1 parent 97ae707 commit 09f6af6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

vintasend/services/notification_adapters/stubs/fake_adapter.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,18 @@ def send(self, notification: "Notification | OneOffNotification", context: "Noti
3535
self.template_renderer.render(notification, context)
3636

3737
# Capture attachment information for testing
38-
attachment_info = []
39-
for attachment in notification.attachments:
40-
attachment_info.append({
38+
attachment_info = [
39+
{
4140
'id': str(attachment.id),
4241
'filename': attachment.filename,
4342
'content_type': attachment.content_type,
4443
'size': attachment.size,
4544
'is_inline': attachment.is_inline,
4645
'description': attachment.description,
4746
'checksum': attachment.checksum,
48-
})
47+
}
48+
for attachment in notification.attachments
49+
]
4950

5051
self.sent_emails.append((notification, context, attachment_info))
5152

0 commit comments

Comments
 (0)