I Luk Kim
|
d4daf7a951
|
Fix stale chunk_checkpoint test; add _record_trade and run_post_close tests
- Fix pre-existing test failure: fake_run_sim mock was missing **kwargs for
the vix_by_day argument added to run_orb_simulation_with_state
- Add TestRecordTrade (7 tests): verifies long/short PnL sign, R-multiple,
DB close call, and exit_reason preservation — the direction sign bug would
silently invert short-trade PnL
- Add TestRunPostClose (4 tests): equity accumulation, stops_hit counter,
today-only trade filter, snapshot persistence
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
4 months ago |