Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pytest_flask_sqlalchemy/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ def _engine(pytestconfig, request, _transaction, mocker):
if version.parse(sa.__version__) < version.parse('1.3'):
engine.contextual_connect.return_value = connection
elif version.parse(sa.__version__) < version.parse('1.4'):
engine._contextual_connect.return_value = connection
class Cc:
return_value = connection
engine._contextual_connect = Cc
Comment on lines +106 to +108

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could someone review that, please?


# References to `Engine.dialect` should redirect to the Connection (this
# is primarily useful for the `autoload` flag in SQLAlchemy, which references
Expand Down