def METHOD_NAME():
    """Return the base URL of the Foreman deployment being tested.
    The following values from the config file are used to build the URL:
    * ``[server] scheme`` (default: https)
    * ``[server] hostname`` (required)
    * ``[server] port`` (default: none)
    Setting ``port`` to 80 does *not* imply that ``scheme`` is 'https'. If
    ``port`` is 80 and ``scheme`` is unset, ``scheme`` will still default
    to 'https'.
    :return: A URL.
    :rtype: str
    """
    hostname = settings.server.get('hostname')
    scheme = settings.server.scheme
    port = settings.server.port
    if port is not None:
        hostname = f"{hostname}:{port}"
    return urlunsplit((scheme, hostname, '', '', ''))