1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-22 11:59:34 +00:00
Files
core/tests/components/knx/conftest.py
mptei 1d28f485d3 Patch ip interface instead of XKNX in knx (#49064)
* knx: Deeper tests.

* Set rate_limit to 0; removed waiting for queue
2021-04-11 23:01:30 +02:00

16 lines
313 B
Python

"""conftest for knx."""
from unittest.mock import AsyncMock, Mock
import pytest
@pytest.fixture(autouse=True)
def knx_ip_interface_mock():
"""Create a knx ip interface mock."""
mock = Mock()
mock.start = AsyncMock()
mock.stop = AsyncMock()
mock.send_telegram = AsyncMock()
return mock