2021-10-06 00:46:09 +00:00
|
|
|
"""Test configuration for http."""
|
2024-03-08 18:16:21 +00:00
|
|
|
|
2024-05-28 16:37:38 +00:00
|
|
|
from asyncio import AbstractEventLoop
|
|
|
|
|
2021-10-06 00:46:09 +00:00
|
|
|
import pytest
|
|
|
|
|
2024-05-28 16:37:38 +00:00
|
|
|
from tests.typing import ClientSessionGenerator
|
|
|
|
|
2021-10-06 00:46:09 +00:00
|
|
|
|
|
|
|
@pytest.fixture
|
2024-05-28 16:37:38 +00:00
|
|
|
def aiohttp_client(
|
|
|
|
event_loop: AbstractEventLoop,
|
|
|
|
aiohttp_client: ClientSessionGenerator,
|
|
|
|
socket_enabled: None,
|
|
|
|
) -> ClientSessionGenerator:
|
2021-10-06 00:46:09 +00:00
|
|
|
"""Return aiohttp_client and allow opening sockets."""
|
|
|
|
return aiohttp_client
|