def mock_sync_with_schedule(mock_user):
    """Create a mock sync with a cron schedule."""
    organization_id = uuid.uuid4()
    return schemas.Sync(
        id=uuid.uuid4(),
        name="Test Sync With Schedule",
        description="Test description with schedule",
        source_connection_id=uuid.uuid4(),
        destination_connection_ids=[uuid.uuid4()],
        user_id=mock_user.id,
        tenant_id=uuid.uuid4(),
        created_at="2023-01-01T00:00:00",
        updated_at="2023-01-01T00:00:00",
        organization_id=organization_id,
        status=SyncStatus.ACTIVE,
        cron_schedule="0 0 * * *",  # Daily at midnight
        next_scheduled_run=datetime.now(timezone.utc),
        modified_at="2023-01-01T00:00:00",
        created_by_email=mock_user.email,
        modified_by_email=mock_user.email,
    )
Create a mock sync with a cron schedule.
backend/tests/unit/platform/test_scheduler.py