Update pytest configuration and dependencies in pyproject.toml

This commit is contained in:
2025-09-29 14:39:31 +02:00
parent 4615ebe63e
commit 2be9e0f319
2 changed files with 5 additions and 7 deletions

View File

@@ -32,3 +32,7 @@ dependencies = [
"coinbase-advanced-py",
"python-binance",
]
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]

View File

@@ -2,16 +2,10 @@
Configurazione pytest per i test del progetto upo-appAI.
"""
import sys
import pytest
from pathlib import Path
# Aggiungi il path src al PYTHONPATH per tutti i test
src_path = Path(__file__).parent.parent / "src"
sys.path.insert(0, str(src_path))
from dotenv import load_dotenv
# Carica le variabili d'ambiente per tutti i test
from dotenv import load_dotenv
load_dotenv()