fixing CI/CD integration

This commit is contained in:
Grégoire Mureau 2025-07-07 16:25:57 +02:00
parent 76b7eca690
commit a74ed86ba6

View file

@ -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 from email_service import send_error_report_email
# Charger le fichier .env situé un niveau au-dessus # Charger le fichier .env situé un niveau au-dessus
dotenv_path = '../../../.env' # dotenv_path = '../../../.env'
load_dotenv(dotenv_path) # load_dotenv(dotenv_path)
def test_email_service_with_alias(): def test_email_service_with_alias():
""" """
@ -28,9 +28,9 @@ def test_email_service_with_alias():
smtp_email = os.getenv("SMTP_EMAIL") smtp_email = os.getenv("SMTP_EMAIL")
admin_email = os.getenv("ADMIN_EMAIL") admin_email = os.getenv("ADMIN_EMAIL")
assert smtp_server, "SMTP_SERVER non défini dans le fichier .env" assert smtp_server, "SMTP_SERVER non défini"
assert smtp_email, "SMTP_EMAIL non défini dans le fichier .env" assert smtp_email, "SMTP_EMAIL non défini"
assert admin_email, "ADMIN_EMAIL non défini dans le fichier .env" assert admin_email, "ADMIN_EMAIL non défini"
# Configuration de test # Configuration de test
print("🔧 Configuration Email :") print("🔧 Configuration Email :")