Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matteoopenf committed Jan 29, 2025
1 parent 5b31505 commit abde592
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mail_outbound_static/tests/test_ir_mail_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def test_send_email_injects_from_with_canonical(self):
proper handling in the split.
"""
user = "Test < User"
self.message.replace_header("From", "{} <[email protected]>".format(user))
self.message.replace_header("From", f"{user} <[email protected]>")
bounce_parameter = self.parameter_model.search(
[("key", "=", "mail.bounce.alias")]
)
Expand All @@ -145,7 +145,7 @@ def test_send_email_injects_from_with_canonical(self):
def test_01_from_outgoing_server_domainone(self):
self._init_mail_server_domain_whilelist_based()
domain = "domainone.com"
email_from = "Mitchell Admin <admin@{}>".format(domain)
email_from = f"Mitchell Admin <admin@{domain}>"
expected_mail_server = self.mail_server_domainone

self.message.replace_header("From", email_from)
Expand All @@ -168,7 +168,7 @@ def test_01_from_outgoing_server_domainone(self):
def test_02_from_outgoing_server_domaintwo(self):
self._init_mail_server_domain_whilelist_based()
domain = "domaintwo.com"
email_from = "Mitchell Admin <admin@%s>" % domain
email_from = f"Mitchell Admin <admin@{domain}>"
expected_mail_server = self.mail_server_domaintwo

self.message.replace_header("From", email_from)
Expand Down

0 comments on commit abde592

Please sign in to comment.