1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-04 14:09:16 +00:00
Jason Hu d7b61f7ff6 Move mqtt_mock to tests/components/mqtt/conftest.py ()
* Move mqtt_mock to tests/components/mqtt/conftest.py

* Move mqtt room presence sensor test to tests/components/mqtt

* Revert "Move mqtt room presence sensor test to tests/components/mqtt"

This reverts commit e08bc143

* Decouple mqtt room presence sensor test and mqtt_mock
2019-01-31 21:22:29 +01:00

13 lines
295 B
Python

"""Test fixtures for mqtt component."""
import pytest
from tests.common import async_mock_mqtt_component
@pytest.fixture
def mqtt_mock(loop, hass):
"""Fixture to mock MQTT."""
client = loop.run_until_complete(async_mock_mqtt_component(hass))
client.reset_mock()
return client