betamaxpy / betamax

A VCR imitation designed only for python-requests.
https://betamax.readthedocs.io/en/latest/
Other
567 stars 62 forks source link

Replaced the 'datetime.utcnow()' method with 'datetime.now(timezone.utc)' #210

Closed guriWiz closed 5 months ago

guriWiz commented 5 months ago

Resolved #209

sigmavirus24 commented 5 months ago

@Guri-X thanks for the PR! It seems like You've missed a spot where we parse the timestamp from a previously recorded interaction. That parsing needs to be timezone aware for this change to pass tests

guriWiz commented 5 months ago

@sigmavirus24 Thanks for pointing out the issue. I will review the code again and will push the required changes.

guriWiz commented 5 months ago

@sigmavirus24 I fixed the issue. It should be able to clear all tests now.