(self, connections, request_kw)
Test all connections.

        :param connections: iterable of ConnectionSettings objects
        :param request_kw: dict of kw args for `requests.request()` call
        :yields: (connection, exception) tuples for connection test failures
Test all connections.
Test all connections .
def verify_connections(self, connections, request_kw):
        """Test all connections.

        :param connections: iterable of ConnectionSettings objects
        :param request_kw: dict of kw args for `requests.request()` call
        :yields: (connection, exception) tuples for connection test failures
        """
        total = 0
        successes = 0
        for connection in connections:
            total += 1
            requests = connection.get_requests()
            self.debug(f"HEAD {connection.url}")
            try:
                # `send_request_unlogged()`` overrides `verify` argument if
                # verification is disabled for this connection object.
                requests.send_request_unlogged("HEAD", connection.url,
                                               raise_for_status=True,
                                               **request_kw)
                successes += 1
            except HTTPError as exc:
                if exc.response.status_code == 405:  # ignore method not allowed
                    successes += 1
                else:
                    yield connection, exc
            except (CannotResolveHost, OAuth2Error, RequestException) as exc:
                yield connection, exc
        self.log_totals("connections", successes, total)
def verify_connections ( self , connections , request_kw ) : total = 0 successes = 0 for connection in connections : total += 1 requests = connection . get_requests ( ) self . debug ( f"HEAD {connection.url}" ) try : # `send_request_unlogged()`` overrides `verify` argument if # verification is disabled for this connection object. requests . send_request_unlogged ( "HEAD" , connection . url , raise_for_status = True , * * request_kw ) successes += 1 except HTTPError as exc : if exc . response . status_code == 405 : # ignore method not allowed successes += 1 else : yield connection , exc except ( CannotResolveHost , OAuth2Error , RequestException ) as exc : yield connection , exc self . log_totals ( "connections" , successes , total )