Skip to Content
Lookup TraderTests & Acceptance

Tests & Acceptance

Run tests

cd server PYTHONPATH=. python3 -m pytest -q

Acceptance checklist

  • Replaying never reveals candles past cursor
  • Trade submit writes occurrence scored by labeler with context
  • result from labeler; observed_result optional and separate
  • Invalid setup_id rejected
  • /compare returns Wilson interval + level_used or no_signal
  • UTC timestamps throughout
  • Labeler unit tests including intrabar ambiguity

Smoke ingest

A small HistData fixture supports a quick ingest smoke test:

mkdir -p /tmp/histdata-sample cp server/tests/fixtures/sample_histdata.csv /tmp/histdata-sample/ python3 scripts/ingest_histdata.py \ --input-dir /tmp/histdata-sample \ --symbol EURUSD \ --timeframe H1
Last updated on