1
0
bthlabs-jsonrpc/packages/bthlabs-jsonrpc-aiohttp/tests/conftest.py

21 lines
360 B
Python
Raw Normal View History

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