You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Fix DeprecationWarnings for datetime methods in job tests (#2185)
* Fix DeprecationWarnings for datetime methods in job tests
Replaced calls to deprecated `datetime.datetime.utcnow()` with
`datetime.datetime.now(datetime.UTC)` in `tests/unit/job/test_base.py`.
Replaced calls to deprecated `datetime.datetime.utcfromtimestamp()` with
`datetime.datetime.fromtimestamp(timestamp, datetime.UTC)` in
`tests/unit/job/helpers.py`.
These changes address the specific warnings identified in the issue
for these two files.
* Update tests/unit/job/test_base.py
* Update tests/unit/job/test_base.py
* Updates datetime code related to UTC
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
0 commit comments