Fixed Bad Attachment Web/API Error; refs #168

This commit is contained in:
Chris Caron
2024-01-31 21:29:08 -05:00
parent d556f14d0a
commit ecc8655583
2 changed files with 12 additions and 1 deletions

View File

@@ -283,6 +283,10 @@ class AttachmentTests(SimpleTestCase):
with self.assertRaises(ValueError):
parse_attachments(attachment_payload, {})
# We allow empty entries, this is okay; there is just nothing
# returned at the end of the day
assert parse_attachments({''}, {}) == []
# We can't parse entries that are not base64 but specified as
# though they are
attachment_payload = {