Skip to content

Commit 299472a

Browse files
committed
try to register engine
1 parent b49d41c commit 299472a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pytest_flask_sqlalchemy/fixtures.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def _engine(pytestconfig, request, _transaction, mocker):
107107

108108
# Calls to execution_options should return this mocked engine
109109
engine.execution_options.return_value = engine
110+
sa.inspection._self_inspects(engine)
110111

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

0 commit comments

Comments
 (0)