update email test

This commit is contained in:
2025-07-29 22:04:25 -03:00
parent e71d0df6d5
commit f99ca23a79
4 changed files with 15 additions and 17 deletions

View File

@@ -64,19 +64,13 @@ def test_send_email():
ses = boto3.client('ses', region_name='sa-east-1')
ses.verify_email_identity(EmailAddress=from_[1])
assert ses.send_raw_email(
Source=from_[1],
Destinations=[to[0][1]],
RawMessage={'Data': emailmsg.as_bytes()},
sesv2 = boto3.client('sesv2')
r = sesv2.send_email(
Content={
'Raw': {
'Data': emailmsg.as_bytes(),
},
}
)
# sesv2 = boto3.client('sesv2')
# r = sesv2.send_email(
# Content={
# 'Raw': {
# 'Data': emailmsg.as_bytes(),
# },
# }
# )
# assert 'MessageId' in r
assert 'MessageId' in r