You've already forked hotpocket
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
from .celery import * # noqa: F401,F403
|
||||
from .common import * # noqa: F401,F403
|
||||
@@ -0,0 +1,16 @@
|
||||
# -*- 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
|
||||
@@ -0,0 +1,12 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# type: ignore
|
||||
from __future__ import annotations
|
||||
|
||||
import uuid
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def null_uuid():
|
||||
return uuid.UUID('00000000-0000-0000-0000-000000000000')
|
||||
Reference in New Issue
Block a user