mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
add mailadress to user
This commit is contained in:
parent
e678e8bd05
commit
ea5848d174
@ -3,6 +3,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
from allauth.account.models import EmailAddress
|
||||||
|
|
||||||
from django.contrib.auth import get_user_model
|
from django.contrib.auth import get_user_model
|
||||||
|
|
||||||
@ -486,6 +487,8 @@ class PartNotificationTest(TestCase):
|
|||||||
password='password',
|
password='password',
|
||||||
is_staff=True
|
is_staff=True
|
||||||
)
|
)
|
||||||
|
# Add Mailadress
|
||||||
|
EmailAddress.objects.create(user=self.user, email='test@testing.com')
|
||||||
|
|
||||||
def test_notification(self):
|
def test_notification(self):
|
||||||
# There should be no notification runs
|
# There should be no notification runs
|
||||||
|
Loading…
Reference in New Issue
Block a user