wait_until#
- pytest_bluezenv.wait_until(predicate, *a, timeout=None, **kw)[source]#
Call
predicate(*a, **kw)repeatedly until it returns true.The predicate is polled at sensible intervals.
- Parameters:
predicate (
callable) – condition to poll.*a – positional arguments passed to
predicate.timeout (
float) – seconds to wait before giving up. Default:DEFAULT_TIMEOUT.**kw – keyword arguments passed to
predicate.
- Raises:
TimeoutError – if the predicate is not satisfied before the timeout.
Example
wait_until(host.agent.has_device, address)