from __future__ import annotations import pytest from cerbero_mcp.exchanges.alpaca.client import AlpacaClient @pytest.fixture async def client(): """AlpacaClient paper su httpx mock (gestito da pytest-httpx).""" c = AlpacaClient(api_key="test_key", secret_key="test_secret", paper=True) try: yield c finally: await c.aclose() @pytest.fixture async def client_live(): c = AlpacaClient(api_key="test_key", secret_key="test_secret", paper=False) try: yield c finally: await c.aclose()