1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-03 13:39:16 +00:00
core/tests/components/network/conftest.py

22 lines
509 B
Python

"""Tests for the Network Configuration integration."""
from collections.abc import Generator
from unittest.mock import _patch
import pytest
@pytest.fixture(autouse=True)
def mock_network():
"""Override mock of network util's async_get_adapters."""
@pytest.fixture(autouse=True)
def override_mock_get_source_ip(
mock_get_source_ip: _patch,
) -> Generator[None]:
"""Override mock of network util's async_get_source_ip."""
mock_get_source_ip.stop()
yield
mock_get_source_ip.start()