🧑‍💻(mailboxes) add and improve some tests

Add and improve some tests linked to mailbox creation.
This commit is contained in:
Marie PUPO JEAMMET
2024-11-19 16:06:52 +01:00
committed by Sabrina Demagny
parent 151f030582
commit 4de589a7e8
2 changed files with 63 additions and 4 deletions

View File

@@ -68,8 +68,8 @@ class DimailAPIClient:
if response.status_code == status.HTTP_403_FORBIDDEN:
logger.error(
"[DIMAIL] 403 Forbidden: Could not retrieve a token,\
please check 'MAIL_PROVISIONING_API_CREDENTIALS' setting.",
"[DIMAIL] 403 Forbidden: Could not retrieve a token,"
"please check 'MAIL_PROVISIONING_API_CREDENTIALS' setting.",
)
raise exceptions.PermissionDenied(
"Token denied. Please check your MAIL_PROVISIONING_API_CREDENTIALS."