Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
utnapischtim authored and kpsherva committed Mar 21, 2024
1 parent 034cd83 commit c601010
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion invenio_accounts/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=_(
Expand Down
7 changes: 4 additions & 3 deletions tests/test_invenio_accounts.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-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.
Expand All @@ -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():
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit c601010

Please sign in to comment.