Skip to content

Commit bb47ca1

Browse files
committed
fix: tus
1 parent b1b3815 commit bb47ca1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/integration/conftest.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
PROJECT_ROOT = Path(__file__).resolve().parent.parent.parent
1414
CSV_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
2318
TEST_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):

0 commit comments

Comments
 (0)