From ea5848d174c26de32a435b74e4efa28013228fa4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 2 Dec 2021 02:34:45 +0100 Subject: [PATCH] add mailadress to user --- InvenTree/part/test_part.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/InvenTree/part/test_part.py b/InvenTree/part/test_part.py index 30cfce1410..c5b9b3f60a 100644 --- a/InvenTree/part/test_part.py +++ b/InvenTree/part/test_part.py @@ -3,6 +3,7 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals +from allauth.account.models import EmailAddress from django.contrib.auth import get_user_model @@ -486,6 +487,8 @@ class PartNotificationTest(TestCase): password='password', is_staff=True ) + # Add Mailadress + EmailAddress.objects.create(user=self.user, email='test@testing.com') def test_notification(self): # There should be no notification runs