Files
fxhnt/tests/unit/test_equity_beta_current_weights.py

9 lines
272 B
Python

from fxhnt.application.paper_strategies import SixtyFortyStrategy
def test_sixtyforty_constant_weights():
s = SixtyFortyStrategy(bars=None)
w = s.current_weights("2026-06-21")
assert w == {"SPY": 0.6, "IEF": 0.4}
assert abs(sum(w.values()) - 1.0) < 1e-9