Skip to content

Commit

Permalink
fix: various test problems
Browse files Browse the repository at this point in the history
* sphinx deprecation warning about wrong intersphinx_mapping usage

* initialize InvenioI18N was missing

* add missing configuration variable
  • Loading branch information
utnapischtim committed May 21, 2023
1 parent 028fe67 commit df989b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}

Expand Down
5 changes: 4 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit df989b5

Please sign in to comment.