From 7e37e766eab4ba54511c56b06962dcdd9efd27d8 Mon Sep 17 00:00:00 2001 From: Marie PUPO JEAMMET Date: Thu, 26 Sep 2024 16:32:29 +0200 Subject: [PATCH] =?UTF-8?q?fixup!=20=E2=9C=A8(mailbox)=20send=20new=20mail?= =?UTF-8?q?box=20confirmation=20email?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/mailbox_manager/models.py | 4 ---- .../tests/test_models_maildomain.py | 17 ----------------- 2 files changed, 21 deletions(-) diff --git a/src/backend/mailbox_manager/models.py b/src/backend/mailbox_manager/models.py index d7b10e4b9..20f695905 100644 --- a/src/backend/mailbox_manager/models.py +++ b/src/backend/mailbox_manager/models.py @@ -2,8 +2,6 @@ Declare and configure the models for the People additional application : mailbox_manager """ -from logging import getLogger - from django.conf import settings from django.core import exceptions, validators from django.db import models @@ -14,8 +12,6 @@ from mailbox_manager.enums import MailDomainRoleChoices, MailDomainStatusChoices -logger = getLogger(__name__) - class MailDomain(BaseModel): """Domain names from which we will create email addresses (mailboxes).""" diff --git a/src/backend/mailbox_manager/tests/test_models_maildomain.py b/src/backend/mailbox_manager/tests/test_models_maildomain.py index e349560ce..861b096f7 100644 --- a/src/backend/mailbox_manager/tests/test_models_maildomain.py +++ b/src/backend/mailbox_manager/tests/test_models_maildomain.py @@ -37,23 +37,6 @@ def test_models_mail_domain__slug_inferred_from_name(): assert domain.slug == slugify(name) -# # SECRET FIELD - -# def test_models_mail_domain__secret_can_be_empty(): -# """Secret field can be empty on mail domain creation.""" -# domain = factories.MailDomainFactory(secret="") -# assert domain.secret == "" - - -# def test_models_mail_domain__secret_can_be_null(): -# """Secret field can be null on mail domain creation.""" -# domain = factories.MailDomainFactory(secret=None) -# assert domain.secret is None - - -# get_abilities - - def test_models_maildomains_get_abilities_anonymous(): """Check abilities returned for an anonymous user.""" maildomain = factories.MailDomainFactory()