Files
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