add mailadress to user

This commit is contained in:
Matthias 2021-12-02 02:34:45 +01:00
parent e678e8bd05
commit ea5848d174
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -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