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