test(0b): tighten backtest-refs regression lock to require xsfunding ref (task 1 review minor)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-07-13 20:29:43 +02:00
parent 810ebdc105
commit 5a3fca0de3

View File

@@ -115,8 +115,9 @@ def test_backtest_refs_all_also_writes_bybit_sleeve_ret(monkeypatch, tmp_path):
from fxhnt.adapters.persistence.forward_nav import ForwardNavRepo
sids = {row.strategy_id for row in ForwardNavRepo(dsn).all_backtest_summaries()}
assert {"bybit_4edge", "bybit_4edge_levered", "positioning"} <= sids, (
f"backtest-refs --all must also persist the 3 report-kind backtest_summary refs; got {sids}")
assert {"bybit_4edge", "bybit_4edge_levered", "positioning", "xsfunding"} <= sids, (
f"backtest-refs --all must also persist the report-kind backtest_summary refs "
f"(incl. the migrated single-sleeve xsfunding track — Phase 0b); got {sids}")
def test_cli_is_idempotent(monkeypatch, tmp_path):