hotpocket/services/packages/testing/hotpocket_testing/fixtures/celery.py
Tomek Wójcik d909391ee6
Some checks failed
CI / Checks (push) Has been cancelled
Release v1.0.0rc1
2025-08-18 07:09:27 +02:00

17 lines
305 B
Python

# -*- coding: utf-8 -*-
# type: ignore
from __future__ import annotations
from unittest import mock
from celery.result import AsyncResult
import pytest
@pytest.fixture
def async_result(null_uuid) -> mock.Mock:
result = mock.Mock(spec=AsyncResult)
result.id = str(null_uuid)
return result