1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-16 13:31:01 +01:00
Files
core/tests/components/snmp/conftest.py
T
2026-04-01 18:55:53 +02:00

14 lines
274 B
Python

"""Conftest for SNMP tests."""
import socket
from unittest.mock import patch
import pytest
@pytest.fixture(autouse=True)
def patch_getaddrinfo():
"""Patch getaddrinfo to avoid DNS lookups in SNMP tests."""
with patch.object(socket, "getaddrinfo"):
yield