"""Mock transcription service for testing."""

from typing import Dict, Any, Optional
from unittest.mock import MagicMock

from ..protocols import TranscriptionServiceProtocol


def create_mock_transcription_service() -> TranscriptionServiceProtocol:
    """Create a mock transcription service for testing."""
    mock_service = MagicMock(spec=TranscriptionServiceProtocol)
    
    # Mock methods
    mock_service.transcribe_audio.return_value = {
        "status": "completed",
        "text": "This is a mock transcription result.",
        "segments": [
            {"start": 0.0, "end": 5.0, "text": "This is a mock"},
            {"start": 5.0, "end": 10.0, "text": "transcription result."}
        ]
    }
    mock_service.get_transcription_status.return_value = "completed"
    mock_service.initialize.return_value = None
    
    return mock_service
