Skip to content

Commit

Permalink
comment execution_options
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Sep 27, 2021
1 parent b119a8a commit 347f35f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest_flask_sqlalchemy/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ class EngineMock(mocker.MagicMock):
elif version.parse(sa.__version__) < version.parse('1.4'):
engine._contextual_connect.return_value = connection

# Calls to execution_options should return this mocked engine
engine.execution_options.return_value = engine
# Calls to execution_options should return this mocked engine.
# engine.execution_options.return_value = engine

if version.parse(sa.__version__) >= version.parse('1.4'):
sa.inspection._registrars[EngineMock] = sa.engine.Inspector._engine_insp
Expand Down

0 comments on commit 347f35f

Please sign in to comment.