mirror of
https://github.com/home-assistant/core.git
synced 2026-05-16 13:31:01 +01:00
14 lines
274 B
Python
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
|