From df989b57274b739d4b78128da2d63d7a85804cdb Mon Sep 17 00:00:00 2001 From: Christoph Ladurner Date: Sun, 21 May 2023 22:46:23 +0200 Subject: [PATCH] fix: various test problems * sphinx deprecation warning about wrong intersphinx_mapping usage * initialize InvenioI18N was missing * add missing configuration variable --- docs/conf.py | 2 +- tests/conftest.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index fb81bb52..0a3b2c2b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -320,7 +320,7 @@ # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = { - "https://docs.python.org/": None, + "python": ("https://docs.python.org/", None), "invenio-accounts": ("https://invenio-accounts.readthedocs.io/en/latest/", None), } diff --git a/tests/conftest.py b/tests/conftest.py index 5dc866c7..2baa4eab 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -3,6 +3,7 @@ # This file is part of Invenio. # Copyright (C) 2015-2018 CERN. # Copyright (C) 2018 University of Chicago. +# Copyright (C) 2023 Graz University of Technology. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. @@ -20,7 +21,7 @@ from flask_menu import Menu as FlaskMenu from invenio_accounts import InvenioAccounts from invenio_db import InvenioDB, db -from invenio_i18n import Babel +from invenio_i18n import Babel, InvenioI18N from invenio_userprofiles import InvenioUserProfiles from invenio_userprofiles.views import blueprint_ui_init from sqlalchemy_utils.functions import create_database, database_exists, drop_database @@ -138,12 +139,14 @@ def base_app(request): APP_ALLOWED_HOSTS=["localhost"], APP_THEME=["semantic-ui"], THEME_ICONS={"semantic-ui": dict(link="linkify icon")}, + OAUTHCLIENT_SETTINGS_TEMPLATE="invenio_oauthclient/settings/base.html", ) FlaskMenu(base_app) Babel(base_app) Mail(base_app) InvenioDB(base_app) InvenioAccounts(base_app) + InvenioI18N(base_app) with base_app.app_context(): if str(db.engine.url) != "sqlite://" and not database_exists(