core/tests/components/http/conftest.py
Marc Mueller 5e377b89fc
Update pytest-asyncio to 1.0.0 (#145988)
* Update pytest-asyncio to 1.0.0

* Remove event_loop fixture uses
2025-06-02 06:12:22 +02:00

15 lines
321 B
Python

"""Test configuration for http."""
import pytest
from tests.typing import ClientSessionGenerator
@pytest.fixture
def aiohttp_client(
aiohttp_client: ClientSessionGenerator,
socket_enabled: None,
) -> ClientSessionGenerator:
"""Return aiohttp_client and allow opening sockets."""
return aiohttp_client