Skip to content

Commit

Permalink
Unisender Go: Fix integration tests (not support merge_metadata, fix …
Browse files Browse the repository at this point in the history
…datetime format)
  • Loading branch information
Arondit committed Feb 22, 2024
1 parent 03c064b commit a755ece
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_unisender_go_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def test_simple_send(self):
self.assertEqual(anymail_status.message_id, message_id)

def test_all_options(self):
send_at = datetime.now() + timedelta(minutes=2)
send_at_datetime = datetime.now() + timedelta(minutes=2)
send_at = send_at_datetime.strftime("%Y-%m-%d %H:%M:%S")
message = AnymailMessage(
subject="Anymail Unisender Go all-options integration test",
body="This is the text body",
Expand Down Expand Up @@ -141,10 +142,6 @@ def test_template(self):
},
merge_global_data={"ship_date": "yesterday"},
metadata={"customer-id": "unknown", "meta2": 2},
merge_metadata={
"[email protected]": {"customer-id": "ZXK9123"},
"[email protected]": {"customer-id": "ZZT4192"},
},
)
message.from_email = None # use template sender
message.attach("attachment1.txt", "Here is some\ntext", "text/plain")
Expand Down

0 comments on commit a755ece

Please sign in to comment.