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

from unittest import mock

import pytest_mock


class UITestingService:
    def mock_import_from_pocket_task_apply_async(self,
                                                 *,
                                                 mocker: pytest_mock.MockFixture,
                                                 async_result: mock.Mock,
                                                 ) -> mock.Mock:
        return mocker.patch(
            'hotpocket_backend.apps.ui.tasks.import_from_pocket.apply_async',
            return_value=async_result,
        )
