- 13 test files covering: market detection, loader registry/fallback, engine market rules (ChinaA T+1/涨跌停, Crypto funding/liquidation, US/HK commission), signal alignment, metrics, optimizer, provider mapping - CI: fix branch master→main, add pytest step (e2e excluded) - pyproject.toml: add pytest config + dev dependencies - .gitignore: expose unit tests, keep e2e local-only
12 lines
333 B
Python
12 lines
333 B
Python
"""Shared fixtures and sys.path setup for all tests."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
# Ensure agent/ is on sys.path so imports like `backtest.*` and `src.*` work.
|
|
AGENT_DIR = Path(__file__).resolve().parent.parent
|
|
if str(AGENT_DIR) not in sys.path:
|
|
sys.path.insert(0, str(AGENT_DIR))
|