Skip to content

Commit

Permalink
fix: tests caused to new api on invenio-accounts
Browse files Browse the repository at this point in the history
* blueprint is now created by a function in invenio-accounts
  • Loading branch information
utnapischtim committed Mar 22, 2024
1 parent 28fb1e5 commit cf8c283
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
from helpers import create_oauth_client, patch_request
from invenio_accounts import InvenioAccountsREST, InvenioAccountsUI
from invenio_accounts.models import User
from invenio_accounts.views import blueprint as accounts_blueprint
from invenio_accounts.views.settings import (
create_settings_blueprint as create_accounts_blueprint,
)
from invenio_db import InvenioDB, db
from invenio_i18n import InvenioI18N
from six import get_method_self
Expand Down Expand Up @@ -102,7 +104,7 @@ def init_app(app):
app = Flask("testapp", instance_path=instance_path)
init_app(app)
InvenioAccountsUI(app)
app.register_blueprint(accounts_blueprint)
app.register_blueprint(create_accounts_blueprint(app))
app.register_blueprint(server_blueprint)
app.register_blueprint(settings_blueprint)

Expand Down

0 comments on commit cf8c283

Please sign in to comment.