Repository navigation
fix(#123): add sqla matrix in poetry environment - #124
Merged
Merged
Conversation
Pull Request Test Coverage Report for Build 7457184598
💛 - Coveralls |
AbdealiLoKo
reviewed
Jan 9, 2024
| self.connection.commit() | ||
| try: | ||
| self.connection.commit() | ||
| except AttributeError: # sqla < 1.4 |
Contributor
There was a problem hiding this comment.
This comment is confusing.
The first line says sqla<1.4
But second line talks about sqla<2.0
Could you clearly explain what happens in which version
AbdealiLoKo
approved these changes
Jan 9, 2024
AbdealiLoKo
left a comment
Contributor
There was a problem hiding this comment.
Approved but would be best to add a better comment in first commit
earlier sqlalchemy was being installed in pip environment but tests were running in poetry environment, so tests were not checked with sqlalchemy 1.4 Added sqlalchemy values from matrix in poetry environment. updated a testcase where connection.commit was being done, this is expected in sqla>=2.0 but in sqla<2 .execute does commit as well so added that in try, except block
in sqlalchemy tests we are getting 2 warnings - backref_cascade is removed from sqla2.0 and association proxy test was using that so removed it - declarative_base is supposed to be imported from sqla.orm added future=True in session & added sqla_20_warn=1 in ci test job
Contributor
Author
|
Updated comment in first commit, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
earlier sqlalchemy was being installed in pip environment but tests were running in poetry environment, so tests were not checked with sqlalchemy 1.4
Added sqlalchemy values from matrix in poetry environment. updated a testcase where connection.commit was being done, this is expected in sqla>=2.0 but in sqla<2 .execute does commit as well so added that in try, except block