9b124deeea
- Rename project from decp.info to colibre across all codebase - Update domain from https://decp.info to https://colibre.fr - Update GitHub repo references to ColinMaudry/colibre - Rename deployment files: decpinfo-backup.* → colibre-backup.* - Update project configuration and documentation - Rename project assets: decp.info.png → colibre.png - Update environment variables and constants (DOMAIN_NAME, TOKEN_PREFIX, GITHUB_REPO, etc.) - Update URLs in all pages, tests, and configuration files - Keep DECP acronym in text (unchanged per requirements) - Add rebrand note to README.md Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
22 lines
640 B
Python
22 lines
640 B
Python
import os
|
|
|
|
import pytest
|
|
|
|
from src.auth import mailer
|
|
|
|
pytestmark = pytest.mark.integration
|
|
|
|
|
|
@pytest.mark.skipif(
|
|
not os.getenv("BREVO_API_KEY"),
|
|
reason="BREVO_API_KEY absent — test d'intégration Brevo ignoré",
|
|
)
|
|
def test_send_verification_email_sandbox(monkeypatch):
|
|
# DEVELOPMENT=true (défini dans pytest.ini_options) active le mode sandbox Brevo.
|
|
monkeypatch.setenv("APP_BASE_URL", "http://localhost:8050")
|
|
mailer.init_mailer()
|
|
# Ne doit pas lever : l'API Brevo accepte la requête en sandbox.
|
|
mailer.send_verification_email(
|
|
os.getenv("MAIL_FROM", "noreply@colibre"), "INTEGRATION_TOKEN"
|
|
)
|