corridor / sqlalchemy-history

Library to keep track of changes in SQLAlchemy.
Other
25 stars 24 forks source link

fix(#125): handle utcnow for transaction module #126

Closed indiVar0508 closed 8 months ago

indiVar0508 commented 8 months ago

python 3.12 has deprecated the use of datetime.datetime.utcnow infavour of datetime.datetime.now(datetime.UTC). ref: https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow

so added a utility method that tries to address this for different python version and used it in Transaction class and tests where we were setting default datetime value for datetime column.

coveralls commented 8 months ago

Pull Request Test Coverage Report for Build 7457232316

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report. To ensure accuracy in future PRs, please see these guidelines. A quick fix for this PR: rebase it; your next report should be accurate.


Totals Coverage Status
Change from base Build 7207361402: -0.05%
Covered Lines: 4888
Relevant Lines: 5152

💛 - Coveralls