TradingAgents/tests
Ahmet Guzererler cf636232aa fix: resolve 12 pre-existing test failures across 5 test files
Root causes fixed:
- test_config_wiring.py: `callable()` returns False on LangChain @tool
  objects — replaced with `hasattr(x, "invoke")` check
- test_env_override.py: `load_dotenv()` in default_config.py re-reads
  .env on importlib.reload(), leaking user's TRADINGAGENTS_* env vars
  into isolation tests — mock env vars before reload
- test_scanner_comprehensive.py: LLM-calling test was not marked
  @pytest.mark.integration — added marker so offline runs skip it
- test_scanner_fallback.py: assertions used stale `_output_files` list
  from a previous run when output dir already existed — clear dir in
  setUp; also fixed tool-availability check using hasattr(x, "invoke")
- test_scanner_graph.py: output-file path assertions used hardcoded
  date string instead of fixture date; graph node assertions checked
  for removed node names

Full offline suite: 388 passed, 70 deselected, 0 failures.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 11:11:00 +01:00
..
conftest.py feat: add scanner tests, global demo key in conftest, remove 48 inline key patches 2026-03-17 16:01:52 +00:00
test_alpha_vantage_exceptions.py feat: add scanner tests, global demo key in conftest, remove 48 inline key patches 2026-03-17 16:01:52 +00:00
test_alpha_vantage_integration.py feat: add scanner tests, global demo key in conftest, remove 48 inline key patches 2026-03-17 16:01:52 +00:00
test_alpha_vantage_scanner.py feat: Complete 3-phase LLM scanner pipeline with inline tool execution 2026-03-17 08:41:40 +01:00
test_config_wiring.py fix: resolve 12 pre-existing test failures across 5 test files 2026-03-18 11:11:00 +01:00
test_debate_rounds.py feat: medium-term positioning upgrade (debate rounds, TTM, peer comparison, macro regime) (#14) 2026-03-17 22:27:40 +01:00
test_e2e_api_integration.py feat: add scanner tests, global demo key in conftest, remove 48 inline key patches 2026-03-17 16:01:52 +00:00
test_env_override.py fix: resolve 12 pre-existing test failures across 5 test files 2026-03-18 11:11:00 +01:00
test_finnhub_integration.py feat: add Finnhub integration layer, tests, and evaluation report 2026-03-18 07:54:21 +01:00
test_finnhub_live_integration.py test: mark paid-tier Finnhub endpoints; update evaluation with live results 2026-03-18 08:57:00 +01:00
test_industry_deep_dive.py feat: improve Industry Deep Dive report quality with enriched data, sector routing, and tool-call nudge 2026-03-17 20:10:45 +01:00
test_macro_bridge.py feat: Complete 3-phase LLM scanner pipeline with inline tool execution 2026-03-17 08:41:40 +01:00
test_macro_regime.py feat: medium-term positioning upgrade (debate rounds, TTM, peer comparison, macro regime) (#14) 2026-03-17 22:27:40 +01:00
test_peer_comparison.py feat: medium-term positioning upgrade (debate rounds, TTM, peer comparison, macro regime) (#14) 2026-03-17 22:27:40 +01:00
test_scanner_complete_e2e.py feat: Complete 3-phase LLM scanner pipeline with inline tool execution 2026-03-17 08:41:40 +01:00
test_scanner_comprehensive.py fix: resolve 12 pre-existing test failures across 5 test files 2026-03-18 11:11:00 +01:00
test_scanner_end_to_end.py feat: Complete 3-phase LLM scanner pipeline with inline tool execution 2026-03-17 08:41:40 +01:00
test_scanner_fallback.py fix: resolve 12 pre-existing test failures across 5 test files 2026-03-18 11:11:00 +01:00
test_scanner_final.py feat: Complete 3-phase LLM scanner pipeline with inline tool execution 2026-03-17 08:41:40 +01:00
test_scanner_graph.py fix: resolve 12 pre-existing test failures across 5 test files 2026-03-18 11:11:00 +01:00
test_scanner_mocked.py feat: add scanner tests, global demo key in conftest, remove 48 inline key patches 2026-03-17 16:01:52 +00:00
test_scanner_routing.py feat: medium-term positioning upgrade (debate rounds, TTM, peer comparison, macro regime) (#14) 2026-03-17 22:27:40 +01:00
test_scanner_tools.py feat: Complete 3-phase LLM scanner pipeline with inline tool execution 2026-03-17 08:41:40 +01:00
test_ttm_analysis.py feat: medium-term positioning upgrade (debate rounds, TTM, peer comparison, macro regime) (#14) 2026-03-17 22:27:40 +01:00
test_yfinance_integration.py feat: add scanner tests, global demo key in conftest, remove 48 inline key patches 2026-03-17 16:01:52 +00:00