Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support SQLAlchemy 1.3 deprecated threadlocal strategy #15

Merged
merged 3 commits into from
Apr 4, 2019

Conversation

jeancochrane
Copy link
Owner

Overview

SQLAlchemy 1.3 has deprecated the threadlocal engine strategy. This change has the side effect of making the Engine.contextual_connect() method private, which interferes with our mocking.

Depending on the installed version of SQLAlchemy, mock this method differently.

See:

SQLAlchemy 1.3 has deprecated the threadlocal engine strategy. This
change has the side effect of making the Engine.contextual_connect()
method private, which interferes with our mocking. Depending on the
installed version of SQLAlchemy, mock this method differently.

See:
- https://docs.sqlalchemy.org/en/latest/changelog/migration_13.html
@jeancochrane jeancochrane force-pushed the jfc/bugfix/sqlalchemy-1.3-support branch from c78cc35 to a10b23c Compare April 3, 2019 01:37
@jeancochrane jeancochrane merged commit 8709449 into master Apr 4, 2019
@jeancochrane jeancochrane deleted the jfc/bugfix/sqlalchemy-1.3-support branch April 4, 2019 00:38
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant