Remove pytest configuration file and clean up test suite by optimizing imports and simplifying test methods

This commit is contained in:
2025-09-26 05:03:18 +02:00
parent 89c8faf1be
commit d8ed299724
3 changed files with 13 additions and 116 deletions

View File

@@ -2,9 +2,8 @@
Configurazione pytest per i test del progetto upo-appAI.
"""
import pytest
import os
import sys
import pytest
from pathlib import Path
# Aggiungi il path src al PYTHONPATH per tutti i test
@@ -43,16 +42,3 @@ def pytest_collection_modifyitems(config, items):
# Aggiungi marker 'slow' ai test che potrebbero essere lenti
if "overview" in item.name.lower() or "analysis" in item.name.lower():
item.add_marker(pytest.mark.slow)
@pytest.fixture(scope="session")
def env_vars():
"""Fixture per accedere alle variabili d'ambiente nei test"""
return {
'coinbase_configured': all([
os.getenv('COINBASE_API_KEY'),
os.getenv('COINBASE_SECRET'),
os.getenv('COINBASE_PASSPHRASE')
]),
'cryptocompare_configured': bool(os.getenv('CRYPTOCOMPARE_API_KEY')),
}