Mock flask-sqlalchemy queries #1142
Answered
by
LeoJosephson
LeoJosephson
asked this question in
Q&A
-
I'm trying to mock a flask-sqlalchemy query but it just works with old versions like 2.5.1 Example:
With the latest versions (3.x.x) I get an error when running tests with pytest:
Any ideas on how to mock flask-sqlalchemy queries on latest versions? |
Beta Was this translation helpful? Give feedback.
Answered by
LeoJosephson
Dec 1, 2022
Replies: 1 comment
-
Solved: https://stackoverflow.com/questions/74546855/mock-flask-sqlalchemy-query |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LeoJosephson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solved: https://stackoverflow.com/questions/74546855/mock-flask-sqlalchemy-query