hass-core/tests/components/tradfri/conftest.py
Paulus Schoutsen 4de97abc3a Black
2019-07-31 12:25:30 -07:00

13 lines
300 B
Python

"""Common tradfri test fixtures."""
from unittest.mock import patch
import pytest
@pytest.fixture
def mock_gateway_info():
"""Mock get_gateway_info."""
with patch(
"homeassistant.components.tradfri.config_flow." "get_gateway_info"
) as mock_gateway:
yield mock_gateway