test: lazy-load LLM provider clients and add API-key fixtures so the test suite runs cleanly without credentials (#588)

This commit is contained in:
Yijia-Xiao
2026-04-25 07:41:36 +00:00
parent 8e7654f0df
commit f85f5d9f5d
6 changed files with 71 additions and 4 deletions

View File

@@ -1,6 +1,8 @@
import unittest
import warnings
import pytest
from tradingagents.llm_clients.base_client import BaseLLMClient
from tradingagents.llm_clients.model_catalog import get_known_models
from tradingagents.llm_clients.validators import validate_model
@@ -19,6 +21,7 @@ class DummyLLMClient(BaseLLMClient):
return validate_model(self.provider, self.model)
@pytest.mark.unit
class ModelValidationTests(unittest.TestCase):
def test_cli_catalog_models_are_all_validator_approved(self):
for provider, models in get_known_models().items():