All unit tests are working (some warnings are remaining for test_main.py but it's ok for the moment. Requirements.txt updated

This commit is contained in:
Grégoire Mureau 2025-07-07 10:44:46 +02:00
parent a1230b8c00
commit 464d9ec05b
3 changed files with 7 additions and 2 deletions

View file

@ -15,5 +15,6 @@ pandas==2.3.0
nltk==3.9.1 nltk==3.9.1
# === Utilitaires === # === Utilitaires ===
python-dotenv==1.1.1 python-dotenv==1.1.1
httpx==0.28.1
# === Dépendances système === # === Dépendances système ===
protobuf==3.20.3 protobuf==3.20.3

View file

@ -30,7 +30,6 @@ Created on Sat Jul 5 15:03:24 2025
# result = send_error_report_email(test_reports) # result = send_error_report_email(test_reports)
# print(f"Résultat : {'✅ Succès' if result else '❌ Échec'}") # print(f"Résultat : {'✅ Succès' if result else '❌ Échec'}")
import os import os
import sys import sys
from dotenv import load_dotenv from dotenv import load_dotenv

View file

@ -1,5 +1,10 @@
import pytest import os
import sys
from fastapi.testclient import TestClient from fastapi.testclient import TestClient
# Ajouter le répertoire parent au path pour importer email_service
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../")))
from main import app from main import app
client = TestClient(app) client = TestClient(app)