test: run the whole graph end to end with scripted models

- every analyst calls its tools through the router, offline; the decision is parsed and logged
- free-text and structured-output paths, and resume from a checkpoint
- remove the unused mock_llm_client fixture
This commit is contained in:
Yijia-Xiao
2026-09-24 00:41:56 +00:00
parent 632fb51d18
commit 1e439352c0
2 changed files with 155 additions and 12 deletions
-12
View File
@@ -1,7 +1,6 @@
"""Shared pytest fixtures that prevent CI hangs when API keys are absent."""
import os
from unittest.mock import MagicMock, patch
import pytest
@@ -75,14 +74,3 @@ def _isolate_config():
config_module._config = copy.deepcopy(default_config.DEFAULT_CONFIG)
yield
config_module._config = copy.deepcopy(default_config.DEFAULT_CONFIG)
@pytest.fixture()
def mock_llm_client():
client = MagicMock()
client.get_llm.return_value = MagicMock()
with patch(
"tradingagents.llm_clients.factory.create_llm_client",
return_value=client,
):
yield client