mirror of
https://github.com/home-assistant/core.git
synced 2026-05-08 17:49:37 +01:00
5e377b89fc
* Update pytest-asyncio to 1.0.0 * Remove event_loop fixture uses
15 lines
321 B
Python
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
|