Skip to content

Commit 7e8eb1f

Browse files
Pigbibicursoragent
andcommitted
Fix CI: update cash-only equity test expectations.
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 755bb4c commit 7e8eb1f

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

tests/test_decision_mapper.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ def test_translates_weight_decision_for_snapshot_strategy(self):
271271
)
272272

273273
self.assertEqual(plan["allocation"]["target_mode"], "value")
274-
self.assertEqual(plan["allocation"]["targets"]["AAPL"], 7000.0)
275-
self.assertEqual(plan["allocation"]["targets"]["BOXX"], 6000.0)
274+
self.assertEqual(plan["allocation"]["targets"]["AAPL"], 2975.0)
275+
self.assertEqual(plan["allocation"]["targets"]["BOXX"], 2550.0)
276276
self.assertEqual(plan["execution"]["signal_display"], "risk on")
277277
self.assertEqual(plan["execution"]["status_display"], "regime=soft_defense | breadth=55.0%")
278278
self.assertEqual(plan["execution"]["dashboard_text"], "tech dashboard")
@@ -465,9 +465,9 @@ def test_translates_weight_decision_for_global_etf_rotation(self):
465465
)
466466

467467
self.assertEqual(plan["allocation"]["target_mode"], "value")
468-
self.assertEqual(plan["allocation"]["targets"]["VGK"], 10000.0)
469-
self.assertEqual(plan["allocation"]["targets"]["EWJ"], 6000.0)
470-
self.assertEqual(plan["allocation"]["targets"]["BIL"], 4000.0)
468+
self.assertEqual(plan["allocation"]["targets"]["VGK"], 4250.0)
469+
self.assertEqual(plan["allocation"]["targets"]["EWJ"], 2550.0)
470+
self.assertEqual(plan["allocation"]["targets"]["BIL"], 1700.0)
471471
self.assertEqual(plan["execution"]["signal_display"], "quarterly")
472472
self.assertEqual(plan["execution"]["status_display"], "SPY:✅, EFA:✅")
473473

@@ -503,8 +503,8 @@ def test_translates_weight_decision_for_russell_strategy(self):
503503
)
504504

505505
self.assertEqual(plan["allocation"]["target_mode"], "value")
506-
self.assertEqual(plan["allocation"]["targets"]["AAPL"], 6000.0)
507-
self.assertEqual(plan["allocation"]["targets"]["BOXX"], 4000.0)
506+
self.assertEqual(plan["allocation"]["targets"]["AAPL"], 2550.0)
507+
self.assertEqual(plan["allocation"]["targets"]["BOXX"], 1700.0)
508508
self.assertEqual(plan["execution"]["signal_display"], "risk on")
509509
self.assertEqual(
510510
plan["execution"]["status_display"],

tests/test_request_handling.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ def build_rebalance_config(
567567
strategy_plugin_signals=(),
568568
strategy_plugin_error=None,
569569
notification_title_key="",
570+
cash_only_execution=True,
570571
):
571572
return types.SimpleNamespace()
572573

@@ -639,6 +640,7 @@ def build_rebalance_config(
639640
strategy_plugin_signals=(),
640641
strategy_plugin_error=None,
641642
notification_title_key="",
643+
cash_only_execution=True,
642644
):
643645
observed["notification_title_key"] = notification_title_key
644646
return types.SimpleNamespace()
@@ -688,6 +690,7 @@ def build_rebalance_config(
688690
strategy_plugin_signals=(),
689691
strategy_plugin_error=None,
690692
notification_title_key="",
693+
cash_only_execution=True,
691694
):
692695
observed["notification_title_key"] = notification_title_key
693696
return types.SimpleNamespace()

0 commit comments

Comments
 (0)