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:
parent
a1230b8c00
commit
464d9ec05b
3 changed files with 7 additions and 2 deletions
|
|
@ -15,5 +15,6 @@ pandas==2.3.0
|
|||
nltk==3.9.1
|
||||
# === Utilitaires ===
|
||||
python-dotenv==1.1.1
|
||||
httpx==0.28.1
|
||||
# === Dépendances système ===
|
||||
protobuf==3.20.3
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ Created on Sat Jul 5 15:03:24 2025
|
|||
# result = send_error_report_email(test_reports)
|
||||
# print(f"Résultat : {'✅ Succès' if result else '❌ Échec'}")
|
||||
|
||||
|
||||
import os
|
||||
import sys
|
||||
from dotenv import load_dotenv
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
import pytest
|
||||
import os
|
||||
import sys
|
||||
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
|
||||
|
||||
client = TestClient(app)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue