Skip to content

Commit

Permalink
Fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWheating committed May 8, 2021
1 parent 1aba800 commit ef6e45d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/core/test_sqlalchemy_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,15 @@ def test_sql_alchemy_connect_args(
}
with conf_vars(config):
settings.configure_orm()
engine_args = {}
if settings.SQL_ALCHEMY_CONN.startswith('mysql'):
engine_args['isolation_level'] = 'READ COMMITTED'
mock_create_engine.assert_called_once_with(
settings.SQL_ALCHEMY_CONN,
connect_args=SQL_ALCHEMY_CONNECT_ARGS,
poolclass=NullPool,
encoding='utf-8',
isolation_level='READ COMMITTED',
**engine_args,
)

@patch('airflow.settings.setup_event_handlers')
Expand Down

0 comments on commit ef6e45d

Please sign in to comment.