"""Pytest fixtures for backtest tests.""" import pytest import tempfile import shutil from pathlib import Path @pytest.fixture def temp_db_path(tmp_path): """Create a temporary database path.""" db_path = tmp_path / "test_backtest.db" yield str(db_path) @pytest.fixture def temp_file_dir(tmp_path): """Create a temporary file directory for parquet files.""" file_dir = tmp_path / "parquet_files" file_dir.mkdir(parents=True, exist_ok=True) yield str(file_dir)