hotpocket/services/packages/testing/hotpocket_testing/fixtures/celery.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

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