# -*- coding: utf-8 -*-
from __future__ import annotations

from unittest import mock

import pytest_mock


class SaveProcessorTestingService:
    def mock_process_save_task_apply_async(self,
                                           *,
                                           mocker: pytest_mock.MockFixture,
                                           async_result: mock.Mock,
                                           ) -> mock.Mock:
        return mocker.patch(
            'hotpocket_backend.apps.saves.tasks.process_save.apply_async',
            return_value=async_result,
        )
