UPD: improved email tests.
This commit is contained in:
@@ -3,13 +3,12 @@ import datetime
|
||||
from django.apps import apps
|
||||
from django.contrib.auth import get_user_model
|
||||
from django.core import mail as django_mail
|
||||
from django.utils import timezone
|
||||
from django.test import TestCase
|
||||
|
||||
from dav_base.tests.generic import EmailTestCase
|
||||
from dav_base.tests.generic import EmailTestMixin
|
||||
|
||||
from ..models.event import Event
|
||||
from ..models.oneclickaction import OneClickAction
|
||||
from .. import emails
|
||||
|
||||
from .generic import RoleMixin
|
||||
|
||||
@@ -155,9 +154,9 @@ Ausschreibung:
|
||||
{event_text}"""
|
||||
|
||||
|
||||
class TestCase(RoleMixin, EmailTestCase):
|
||||
class EmailTestCase(EmailTestMixin, RoleMixin, TestCase):
|
||||
def setUp(self):
|
||||
super(TestCase, self).setUp()
|
||||
super(EmailTestCase, self).setUp()
|
||||
|
||||
app_config = apps.get_containing_app_config(__package__)
|
||||
app_config.settings.enable_email_on_update = False
|
||||
|
||||
Reference in New Issue
Block a user