implemented new email templates, but not rendering

This commit is contained in:
Sam
2021-03-12 12:37:27 +00:00
parent d0609fd1fa
commit 778d65d84e
4 changed files with 378 additions and 12 deletions

View File

@@ -1217,8 +1217,13 @@ class PurchaseEmailTest(APITestCase):
self.assertEquals(2, len(mail.outbox))
def test_auth_user_can_use(self):
# required instances
company = CompanyFactory()
product = ProductFactory(company=company)
# make user the manager
self.user.company = company
self.user.role = 'COOP_MANAGER'
self.user.save()
data = {
'telephone': '123123123',