From 2be9e0f319b2bb7e34e4ec5dea647b750bc1dd07 Mon Sep 17 00:00:00 2001 From: Berack96 Date: Mon, 29 Sep 2025 14:39:31 +0200 Subject: [PATCH] Update pytest configuration and dependencies in pyproject.toml --- pyproject.toml | 4 ++++ tests/conftest.py | 8 +------- 2 files changed, 5 insertions(+), 7 deletions(-) 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()