1
0
bthlabs-jsonrpc/packages/bthlabs-jsonrpc-aiohttp/tests/conftest.py
2024-01-15 20:20:10 +00:00

21 lines
360 B
Python

# -*- coding: utf-8 -*-
# type: ignore
from __future__ import annotations
from unittest import mock
from aiohttp.web import Request
import pytest
from .fixtures import AsyncJSONCodec
@pytest.fixture
def fake_request() -> mock.Mock:
return mock.Mock(spec=Request)
@pytest.fixture
def async_json_codec() -> AsyncJSONCodec:
return AsyncJSONCodec()