Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
psaiz committed Dec 21, 2023
1 parent 84f47f9 commit 59973e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion invenio_accounts/views/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def init_menu():
item = current_menu.submenu("breadcrumbs.settings")
item.register("invenio_userprofiles.profile", _("Account"))
if not current_app.config.get("ACCOUNTS_REGISTER_BLUEPRINT"):
return
return

# - Register menu
# - Change password
Expand Down
4 changes: 2 additions & 2 deletions tests/test_invenio_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ def test_init_rest():
assert "security" not in app.blueprints.keys()
ext.init_app(app)
assert "invenio-accounts" in app.extensions
assert "security" in app.blueprints.keys()
assert "security_email_templates" in app.blueprints.keys()
assert "security" not in app.blueprints.keys()
assert "security_email_templates" not in app.blueprints.keys()


@pytest.mark.skip(reason="Mergepoint is on invenio-access.")
Expand Down

0 comments on commit 59973e6

Please sign in to comment.