Update pytest configuration and dependencies in pyproject.toml
This commit is contained in:
@@ -32,3 +32,7 @@ dependencies = [
|
|||||||
"coinbase-advanced-py",
|
"coinbase-advanced-py",
|
||||||
"python-binance",
|
"python-binance",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
pythonpath = ["src"]
|
||||||
|
testpaths = ["tests"]
|
||||||
|
|||||||
@@ -2,16 +2,10 @@
|
|||||||
Configurazione pytest per i test del progetto upo-appAI.
|
Configurazione pytest per i test del progetto upo-appAI.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
|
||||||
import pytest
|
import pytest
|
||||||
from pathlib import Path
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
# Aggiungi il path src al PYTHONPATH per tutti i test
|
|
||||||
src_path = Path(__file__).parent.parent / "src"
|
|
||||||
sys.path.insert(0, str(src_path))
|
|
||||||
|
|
||||||
# Carica le variabili d'ambiente per tutti i test
|
# Carica le variabili d'ambiente per tutti i test
|
||||||
from dotenv import load_dotenv
|
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user