Skip to content

Commit

Permalink
Merge pull request #5181 from ckan/fix-mailer-test
Browse files Browse the repository at this point in the history
Fix python3 mailer test
  • Loading branch information
tino097 committed Jan 31, 2020
2 parents 4afed39 + 5dfa182 commit a3db192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/tests/lib/test_mailer.py
Expand Up @@ -86,8 +86,8 @@ def test_mail_recipient_with_html(self, mail_server):
msg = msgs[0]
assert msg[1] == config["smtp.mail_from"]
assert msg[2] == [test_email["recipient_email"]]
assert test_email["headers"].keys()[0] in msg[3], msg[3]
assert test_email["headers"].values()[0] in msg[3], msg[3]
assert list(test_email["headers"].keys())[0] in msg[3], msg[3]
assert list(test_email["headers"].values())[0] in msg[3], msg[3]
assert test_email["subject"] in msg[3], msg[3]
assert msg[3].startswith('Content-Type: multipart'), msg[3]
expected_plain_body = self.mime_encode(
Expand Down

0 comments on commit a3db192

Please sign in to comment.