From 4f16e4b9d0e9f1691e58d719c3f34d2a4f6d3176 Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Sun, 21 Aug 2016 18:28:16 +1000 Subject: [PATCH] Oops. --- registrasion/controllers/invoice.py | 2 +- registrasion/tests/test_invoice.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/registrasion/controllers/invoice.py b/registrasion/controllers/invoice.py index 1b70640e..25578cdd 100644 --- a/registrasion/controllers/invoice.py +++ b/registrasion/controllers/invoice.py @@ -334,7 +334,7 @@ class InvoiceController(ForId, object): "invoice": invoice, } - send_email(invoice.user.email, kind, context=context) + send_email([invoice.user.email], kind, context=context) @classmethod def email_on_invoice_creation(cls, invoice): diff --git a/registrasion/tests/test_invoice.py b/registrasion/tests/test_invoice.py index 98d479b6..bd8c4340 100644 --- a/registrasion/tests/test_invoice.py +++ b/registrasion/tests/test_invoice.py @@ -538,7 +538,7 @@ class InvoiceTestCase(RegistrationCartTestCase): invoice = self._invoice_containing_prod_1(1) self.assertEquals(1, len(self.emails)) email = self.emails[0] - self.assertEquals(self.USER_1.email, email["to"]) + self.assertEquals([self.USER_1.email], email["to"]) self.assertEquals("invoice_created", email["kind"]) self.assertEquals(invoice.invoice, email["context"]["invoice"]) @@ -553,7 +553,7 @@ class InvoiceTestCase(RegistrationCartTestCase): self.assertEquals(2, len(self.emails)) email = self.emails[1] - self.assertEquals(self.USER_1.email, email["to"]) + self.assertEquals([self.USER_1.email], email["to"]) self.assertEquals("invoice_updated", email["kind"]) self.assertEquals(invoice.invoice, email["context"]["invoice"]) @@ -567,6 +567,6 @@ class InvoiceTestCase(RegistrationCartTestCase): self.assertEquals(3, len(self.emails)) email = self.emails[2] - self.assertEquals(self.USER_1.email, email["to"]) + self.assertEquals([self.USER_1.email], email["to"]) self.assertEquals("invoice_updated", email["kind"]) self.assertEquals(invoice.invoice, email["context"]["invoice"])