Révision 8fcdf922
Ajouté par Serghei Mihai il y a plus de 7 ans
tests/test_emailing.py | ||
---|---|---|
98 | 98 |
assert broadcast.result |
99 | 99 |
|
100 | 100 |
assert len(mailoutbox) == total_sent + broadcast.result |
101 |
attachments = [a['filename'] for a in mailoutbox[i].attachments.as_dict()]
|
|
102 |
assert image_name in attachments
|
|
103 |
assert 'cid:%s' % image_name in mailoutbox[i].html_body
|
|
104 |
assert 'cid:%s' % image_name in mailoutbox[i].text_body
|
|
101 |
transformed_image_src = transform_image_src(img_src)
|
|
102 |
assert transformed_image_src in mailoutbox[i].attachments.keys()
|
|
103 |
assert 'cid:%s' % transformed_image_src in mailoutbox[i].html_body
|
|
104 |
assert 'cid:%s' % transformed_image_src in mailoutbox[i].text_body
|
|
105 | 105 |
total_sent += broadcast.result |
106 | 106 |
storage.delete(image_name) |
107 | 107 |
|
Formats disponibles : Unified diff
tests: fix inline images check test (#14062)