diff --git a/pyproject.toml b/pyproject.toml index 35a3b6e..d7caff6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,3 +32,7 @@ dependencies = [ "coinbase-advanced-py", "python-binance", ] + +[tool.pytest.ini_options] +pythonpath = ["src"] +testpaths = ["tests"] diff --git a/tests/conftest.py b/tests/conftest.py index cfe3606..2b6c16f 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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()