From c60101069605fe7e254b2d1e039e86722b8467b1 Mon Sep 17 00:00:00 2001 From: Christoph Ladurner Date: Wed, 20 Mar 2024 21:40:03 +0100 Subject: [PATCH] fix: tests --- invenio_accounts/ext.py | 2 +- tests/test_invenio_accounts.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/invenio_accounts/ext.py b/invenio_accounts/ext.py index 26fc81a1..74952c6e 100644 --- a/invenio_accounts/ext.py +++ b/invenio_accounts/ext.py @@ -372,7 +372,7 @@ def check_security_settings(app): def init_menu(app): - """init menu.""" + """Init menu.""" current_menu.submenu("settings.security").register( endpoint="invenio_accounts.security", text=_( diff --git a/tests/test_invenio_accounts.py b/tests/test_invenio_accounts.py index 428008b3..aa458ea5 100644 --- a/tests/test_invenio_accounts.py +++ b/tests/test_invenio_accounts.py @@ -3,6 +3,7 @@ # This file is part of Invenio. # Copyright (C) 2015-2023 CERN. # Copyright (C) 2021 TU Wien. +# Copyright (C) 2024 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 invenio_accounts import InvenioAccounts, InvenioAccountsREST, testutils from invenio_accounts.models import Role, User -from invenio_accounts.views.settings import blueprint +from invenio_accounts.views.settings import create_settings_blueprint def test_version(): @@ -114,8 +115,8 @@ def test_accounts_settings_blueprint(base_app): app.config["ACCOUNTS_REGISTER_BLUEPRINT"] = False InvenioAccounts(app) # register settings blueprint - app.register_blueprint(blueprint) - + # app.register_blueprint(blueprint) + create_settings_blueprint(app) with app.app_context(): with app.test_client() as client: client.get("/account/settings")