Files
jgrusewski 2fbb19d9df refactor(ml): rename real_data_loader to data_loader
The real_ prefix was misleading — there is no fake data loader.
Mechanical rename across 18 source files, no logic changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 15:41:23 +01:00
..

test-common

Shared test fixtures, builders, and assertions for the Foxhunt workspace. Consolidates duplicate test code across 39+ files.

Key Types

  • TestDb -- isolated test database with automatic cleanup
  • MockOrderBuilder -- fluent order/trade builder
  • BarBuilder -- OHLCV bar generation with realistic price movements
  • PositionBuilder -- mock positions with P&L calculations

Fixtures

  • generate_ohlcv_bars() -- realistic OHLCV data
  • generate_random_walk() -- Monte Carlo price simulations
  • generate_crisis_returns() -- 2008 crisis patterns
  • generate_order_book() -- order book levels

Assertions

  • assert_approx_eq! -- percentage tolerance comparison
  • assert_ohlc_valid -- OHLC bar validation
  • assert_var_exceedances -- VaR exceedance checks

Usage

[dev-dependencies]
test_common = { path = "../../testing/test-common" }