hotpocket/services/backend/testing/hotpocket_backend_testing/services/ui.py
Tomek Wójcik b4338e2769
Some checks failed
CI / Checks (push) Failing after 13m2s
Release v1.0.0
2025-08-20 21:00:50 +02:00

19 lines
616 B
Python

# -*- 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,
)