Hello!!! my code is correct, but check50 send a parameter "today" so in check50 if date is 1999-01-01 must be "Five hundred....." bla-bla-bla, if "today" was 2001-01-01. instead my function show ("several millions...bla bla bla) that correspond to the substract of today-1999-01-01 you catch it? my function returns the exactly phrase if i use Date: 2023-10-20 (today is 2024-10-19, and is a leap year) well i use datetime.date.today() as instructions, indicates but how can i catch the input of "today" in unitest of cs50? or i can't see the way of pass this !!!!
@SimpleEasyPython3 ай бұрын
It is always good to use yesterday and day before yesterday in pytest so that the difference is 1440 and 2880 respectively as I have said in the video. Also avoid running pytest near mid-night where the day changes. Hope this helps.