From a74ed86ba6565f792f6f30c772a98d75c897217d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Mureau?= Date: Mon, 7 Jul 2025 16:25:57 +0200 Subject: [PATCH] fixing CI/CD integration --- deployment/api/tests/test_email_service.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deployment/api/tests/test_email_service.py b/deployment/api/tests/test_email_service.py index fe8a156..b616f69 100644 --- a/deployment/api/tests/test_email_service.py +++ b/deployment/api/tests/test_email_service.py @@ -16,8 +16,8 @@ sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../"))) from email_service import send_error_report_email # Charger le fichier .env situé un niveau au-dessus -dotenv_path = '../../../.env' -load_dotenv(dotenv_path) +# dotenv_path = '../../../.env' +# load_dotenv(dotenv_path) def test_email_service_with_alias(): """ @@ -28,9 +28,9 @@ def test_email_service_with_alias(): smtp_email = os.getenv("SMTP_EMAIL") admin_email = os.getenv("ADMIN_EMAIL") - assert smtp_server, "SMTP_SERVER non défini dans le fichier .env" - assert smtp_email, "SMTP_EMAIL non défini dans le fichier .env" - assert admin_email, "ADMIN_EMAIL non défini dans le fichier .env" + assert smtp_server, "SMTP_SERVER non défini" + assert smtp_email, "SMTP_EMAIL non défini" + assert admin_email, "ADMIN_EMAIL non défini" # Configuration de test print("🔧 Configuration Email :")