core/tests/components/network/conftest.py

17 lines
403 B
Python
Raw Normal View History

"""Tests for the Network Configuration integration."""
import pytest
@pytest.fixture(autouse=True)
def mock_network():
"""Override mock of network util's async_get_adapters."""
2022-07-14 09:05:52 +00:00
@pytest.fixture(autouse=True)
def override_mock_get_source_ip(mock_get_source_ip):
"""Override mock of network util's async_get_source_ip."""
mock_get_source_ip.stop()
yield
mock_get_source_ip.start()