33"""
44
55import polars as pl
6+ import pytest
67from unittest .mock import Mock , patch
78from macro_agents .defs .agents .analysis_agent import (
89 EconomicAnalyzer ,
@@ -31,6 +32,7 @@ def test_initialization(self):
3132 assert analyzer .model_name == "gpt-4-turbo-preview"
3233 assert analyzer .openai_api_key == "test_key"
3334
35+ @pytest .mark .skip_ci
3436 @patch ("dspy.LM" )
3537 @patch ("dspy.settings.configure" )
3638 def test_setup_for_execution (self , mock_configure , mock_lm ):
@@ -45,6 +47,7 @@ def test_setup_for_execution(self, mock_configure, mock_lm):
4547 mock_lm .assert_called_once ()
4648 mock_configure .assert_called_once ()
4749
50+ @pytest .mark .skip_ci
4851 def test_format_results_as_json (self ):
4952 """Test formatting results as JSON."""
5053 analyzer = EconomicAnalyzer (
@@ -78,6 +81,7 @@ def test_initialization(self):
7881 assert analyzer .model_name == "gpt-4-turbo-preview"
7982 assert analyzer .openai_api_key == "test_key"
8083
84+ @pytest .mark .skip_ci
8185 @patch ("dspy.LM" )
8286 @patch ("dspy.settings.configure" )
8387 def test_setup_for_execution (self , mock_configure , mock_lm ):
@@ -139,6 +143,7 @@ def test_get_market_data(self):
139143 assert "AAPL" in result
140144 mock_md .execute_query .assert_called_once ()
141145
146+ @pytest .mark .skip_ci
142147 def test_format_cycle_analysis_as_json (self ):
143148 """Test formatting cycle analysis as JSON."""
144149 analyzer = EconomicCycleAnalyzer (
@@ -173,6 +178,7 @@ def test_initialization(self):
173178 assert analyzer .model_name == "gpt-4-turbo-preview"
174179 assert analyzer .openai_api_key == "test_key"
175180
181+ @pytest .mark .skip_ci
176182 @patch ("dspy.LM" )
177183 @patch ("dspy.settings.configure" )
178184 def test_setup_for_execution (self , mock_configure , mock_lm ):
@@ -209,6 +215,7 @@ def test_get_latest_analysis(self):
209215 assert trend_analysis == "trend analysis"
210216 mock_md .execute_query .assert_called_once ()
211217
218+ @pytest .mark .skip_ci
212219 def test_format_allocation_as_json (self ):
213220 """Test formatting allocation as JSON."""
214221 analyzer = AssetAllocationAnalyzer (
0 commit comments