implemented new email templates, but not rendering
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user