Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix flask-sqlalchemy regression #65

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dwreeves
Copy link
Contributor

To be honest, I have no idea how to make the tests pass for this repo for Flask-SQLAlchemy 3.x; I'd spent a few hours trying with no avail; it's more complicated than just running tests in a live app context. Sorry 😦 Raw SQL seems to work, but the ORM does not, is the extent of what I remember.

However, in my experience and despite the tests for this build not working, this does fix a regression for Flask-SQLAlchemy 3.0, as long as the end-user also yields the SQLAlchemy() object in the app context.

@dwreeves
Copy link
Contributor Author

Removing 3.* from the CI. I simply cannot get those tests to pass. Is it so bad if the library silently happens to work with SQLAlchemy 3.x even if we cannot get the test suite working? I think that is better than straight up failing.

@dwreeves dwreeves force-pushed the fix-regression-flask-sqlalchemy-3.0 branch from 446d8c5 to c6cc820 Compare February 25, 2023 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant