"""Fixtures for research_scheduler tests."""

from unittest.mock import MagicMock

import pytest


@pytest.fixture
def mock_news_scheduler():
    """Mock NewsScheduler instance."""
    scheduler = MagicMock()
    scheduler.get_document_scheduler_status.return_value = {
        "is_running": True,
        "last_run_time": "2024-01-01T10:00:00",
        "next_run_time": "2024-01-01T11:00:00",
        "total_processed": 100,
        "currently_processing": 2,
        "processing_ids": ["id1", "id2"],
        "settings": {"interval": 60},
    }
    scheduler.trigger_document_processing.return_value = True
    return scheduler


@pytest.fixture
def sample_status():
    """Sample scheduler status."""
    return {
        "is_running": True,
        "last_run_time": "2024-01-01T10:00:00",
        "next_run_time": "2024-01-01T11:00:00",
        "total_processed": 100,
        "currently_processing": 2,
        "processing_ids": ["id1", "id2"],
        "settings": {"interval": 60},
    }
