I have an application where I would like to test whether or not the server updates the data correctly. The server is set to update the data at every midnight. I want to use Python to test this, however it is inconvenient to have a test running over night for this. I would also like to test edge cases such as months with less days, daylight savings, etc. Is there any way to mock a system time or fast forward in time in python?
Asked
Active
Viewed 40 times
1
-
2https://github.com/spulec/freezegun – jonrsharpe May 07 '18 at 09:03
-
Thank you! That looks exactly what I was looking for. – HackerTitan May 07 '18 at 12:34