Skip to content

Commit 4ef3fec

Browse files
ajout du fichier __init__.py et mise à jour de database_test.py pour inclure le chemin système
1 parent bb46850 commit 4ef3fec

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

backend/test/__init__.py

Whitespace-only changes.

backend/test/database_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
from fastapi.testclient import TestClient
77

8-
import os
8+
import sys, os
9+
10+
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
911

1012
client = TestClient(app) # Use FastAPI's TestClient for testing
1113

0 commit comments

Comments
 (0)