jborean93 / pyspnego

Python SPNEGO authentication library
MIT License
52 stars 11 forks source link

Move away from dep datetime call #79

Closed jborean93 closed 6 months ago

jborean93 commented 6 months ago

Python 3.12 deprecated datetime.datetime.utcnow() in favour of datetime.datetime.now(datetime.timezone.utc) to ensure that a non naive dt object was created. This PR moved to the newer syntax where the older one was used.

Fixes: https://github.com/jborean93/pyspnego/issues/78

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.96%. Comparing base (a630aa6) to head (8b3b420).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #79 +/- ## ======================================= Coverage 99.96% 99.96% ======================================= Files 30 30 Lines 5365 5365 ======================================= Hits 5363 5363 Misses 2 2 ``` | [Flag](https://app.codecov.io/gh/jborean93/pyspnego/pull/79/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | Coverage Δ | | |---|---|---| | [](https://app.codecov.io/gh/jborean93/pyspnego/pull/79/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `99.96% <100.00%> (ø)` | | | [py3.10](https://app.codecov.io/gh/jborean93/pyspnego/pull/79/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `99.92% <100.00%> (ø)` | | | [py3.11](https://app.codecov.io/gh/jborean93/pyspnego/pull/79/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `99.92% <100.00%> (ø)` | | | [py3.12](https://app.codecov.io/gh/jborean93/pyspnego/pull/79/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `99.92% <100.00%> (ø)` | | | [py3.8](https://app.codecov.io/gh/jborean93/pyspnego/pull/79/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `99.92% <100.00%> (ø)` | | | [py3.9](https://app.codecov.io/gh/jborean93/pyspnego/pull/79/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `99.96% <100.00%> (ø)` | | | [x64](https://app.codecov.io/gh/jborean93/pyspnego/pull/79/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `99.96% <100.00%> (ø)` | | | [x86](https://app.codecov.io/gh/jborean93/pyspnego/pull/79/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean) | `95.84% <100.00%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jordan+Borean#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.