[tests] Disable hypothesis deadline on flaky IP address test (#16652)

This commit is contained in:
J. Nick Koston
2026-05-25 20:14:36 -05:00
committed by GitHub
parent b39b34bfe1
commit e492f8f8b6

View File

@@ -7,7 +7,7 @@ import stat
from unittest.mock import MagicMock, patch
from aioesphomeapi.host_resolver import AddrInfo, IPv4Sockaddr, IPv6Sockaddr
from hypothesis import given
from hypothesis import given, settings
from hypothesis.strategies import ip_addresses
import pytest
@@ -151,6 +151,7 @@ def test_is_ip_address__invalid(host):
assert actual is False
@settings(deadline=None)
@given(value=ip_addresses(v=4).map(str))
def test_is_ip_address__valid(value):
actual = helpers.is_ip_address(value)