Skip to content

Commit

Permalink
db: upgrade flask-sqlalchemy
Browse files Browse the repository at this point in the history
* replaces the previous not private method `create_scoped_session`
  with the private method `_make_scoped_session`. Related GitHub issue:
  jeancochrane/pytest-flask-sqlalchemy#63
  • Loading branch information
ntarocco committed Apr 12, 2023
1 parent d7397f3 commit 8722007
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pytest_invenio/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def db(database):
transaction = connection.begin()

options = dict(bind=connection, binds={})
session = database.create_scoped_session(options=options)
session = database._make_scoped_session(options=options)

session.begin_nested()

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ install_requires =
tests =
pytest-black>=0.3.0
invenio-celery>=1.2.4,<2.0.0
invenio-db>=1.0.12,<2.0.0
invenio-db>=1.1.0,<2.0.0
invenio-files-rest>=1.3.2,<2.0.0
invenio-mail>=1.0.2,<2.0.0
invenio-search>=2.1.0,<3.0.0
Expand Down

0 comments on commit 8722007

Please sign in to comment.