python3-freezegun

Python3 library to mock the datetime module in unit testing
  https://github.com/spulec/freezegun
  0
  no reviews



FreezeGun allows easy mocking of the datetime module by freezing the return value of the methods datetime.datetime.now(), datetime.datetime.utcnow(), datetime.date.today(), and time.time() to a fixed point in time. Use it in unit testing to make the tests deterministic and time-independent.