The Python Oracle

Trying to mock datetime.date.today(), but not working

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Digital Sunset Looping

--

Chapters
00:00 Question
00:26 Accepted answer (Score 150)
01:46 Answer 2 (Score 218)
02:45 Answer 3 (Score 158)
03:11 Answer 4 (Score 40)
03:59 Thank you

--

Full question
https://stackoverflow.com/questions/4481...

Accepted answer links:
[this answer]: https://stackoverflow.com/questions/1926...

Answer 2 links:
https://github.com/spulec/freezegun/

Answer 3 links:
https://docs.python.org/3/library/unitte...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #testing #datetime #mocking

#avk47