File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1313PROJECT_ROOT = Path (__file__ ).resolve ().parent .parent .parent
1414CSV_DATA_FILE = str (PROJECT_ROOT / "data" / "SOL_USDT" / "2024" / "1m.csv" )
1515
16- pytestmark = pytest .mark .skipif (
17- not Path (CSV_DATA_FILE ).exists (),
18- reason = f"Integration test data not available: { CSV_DATA_FILE } " ,
19- )
20-
2116# Short period for fast tests (~2880 candles at 1m)
2217# CSV data ranges from 2024-01-01 to 2024-10-21, SOL/USDT prices ~150-173 in Aug 2024
2318TEST_START_DATE = "2024-08-01T00:00:00Z"
@@ -109,6 +104,9 @@ async def run_backtest_bot(make_config_file):
109104 The bot instance is returned so tests can inspect internal state
110105 (balance_tracker, grid_manager, order_book, etc.).
111106 """
107+ if not Path (CSV_DATA_FILE ).exists ():
108+ pytest .skip (f"Integration test data not available: { CSV_DATA_FILE } " )
109+
112110 bots_and_event_buses = []
113111
114112 async def _run (strategy_type : str , spacing : str ):
You can’t perform that action at this time.
0 commit comments