"""Tests for backtesting engine."""

import pytest
from datetime import datetime, timedelta
from src.backtesting.engine import get_backtest_engine, BacktestingEngine


class TestBacktestingEngine:
    """Tests for BacktestingEngine."""
    
    @pytest.fixture
    def backtest_engine(self):
        """Create backtesting engine instance."""
        return get_backtest_engine()
    
    def test_engine_initialization(self, backtest_engine):
        """Test backtesting engine initialization."""
        assert backtest_engine is not None
    
    @pytest.mark.asyncio
    async def test_run_backtest(self, backtest_engine):
        """Test running a backtest."""
        # This would require a full strategy implementation
        # Simplified test
        assert backtest_engine is not None

