Files
opencode-skill/skills/alphaear-logic-visualizer/tests/test_visualizer.py
Kunthawat Greethong 58f9380ec4 Import 9 alphaear finance skills
- alphaear-deepear-lite: DeepEar Lite API integration
- alphaear-logic-visualizer: Draw.io XML finance diagrams
- alphaear-news: Real-time finance news (10+ sources)
- alphaear-predictor: Kronos time-series forecasting
- alphaear-reporter: Professional financial reports
- alphaear-search: Web search + local RAG
- alphaear-sentiment: FinBERT/LLM sentiment analysis
- alphaear-signal-tracker: Signal evolution tracking
- alphaear-stock: A-Share/HK/US stock data

Updates:
- All scripts updated to use universal .env path
- Added JINA_API_KEY, LLM_*, DEEPSEEK_API_KEY to .env.example
- Updated load_dotenv() to use ~/.config/opencode/.env
2026-03-27 10:11:37 +07:00

22 lines
506 B
Python

import sys
import os
import unittest
# Add skill root to path
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
try:
from scripts.visualizer import VisualizerTools
except ImportError as e:
print(f"Import Error: {e}")
sys.exit(1)
class TestLogicViz(unittest.TestCase):
def test_init(self):
print("Testing VisualizerTools Iteration...")
viz = VisualizerTools()
self.assertIsNotNone(viz)
if __name__ == '__main__':
unittest.main()