def url_test(url, complete=False, config=None):  # pragma: no covere
    """
    Test the availability of the given URL.

    :param url: The URL to test.
    :type url: str

    :param complete:
        Activate the return of a dict with some significant data from
        the test.
    :type complete: bool

    :param config:
        A dict with the configuration index (from .PyFunceble.yaml) to update.
    :type config: dict

    :return: The status or the informations of the URL.
    :rtype: str|dict

    .. warning::
        If an empty or a non-string :code:`url` is given, we return :code:`None`.

    .. warning::
        If :code:`config` is given, the given :code:`dict` overwrite
        the last value of the given indexes.

    """

    if url and isinstance(url, str):
        # The given URL is not empty nor None.
        # and
        # * The given URL is a string.

        # We silently load the configuration.
        load_config(True)

        if config and isinstance(config, dict):
            # The given configuration is not None or empty.
            # and
            # It is a dict.

            # We update the configuration index.
            CONFIGURATION.update(config)

        # And we return the status of the given URL.
        return Core(url_to_test=url, modulo_test=True).test(complete)

    # We return None, there is nothing to test.
    return None
def url_test ( url , complete = False , config = None ) : if url and isinstance ( url , str ) : load_config ( True ) if config and isinstance ( config , dict ) : CONFIGURATION . update ( config ) return Core ( url_to_test = url , modulo_test = True ) . test ( complete ) return None
Test the availability of the given URL.

    :param url: The URL to test.
    :type url: str

    :param complete:
        Activate the return of a dict with some significant data from
        the test.
    :type complete: bool

    :param config:
        A dict with the configuration index (from .PyFunceble.yaml) to update.
    :type config: dict

    :return: The status or the informations of the URL.
    :rtype: str|dict

    .. warning::
        If an empty or a non-string :code:`url` is given, we return :code:`None`.

    .. warning::
        If :code:`config` is given, the given :code:`dict` overwrite
        the last value of the given indexes.