I\'ve built a paywalled CMS + invoicing system for a client and I need to get more stringent with my testing.
I keep all my data in a Django ORM and have a bunch of Cele
You can also take a look at freezegun module. Github - https://github.com/spulec/freezegun
freezegun
From their docs
from freezegun import freeze_time import datetime @freeze_time("2012-01-14") def test(): assert datetime.datetime.now() == datetime.datetime(2012, 1, 14)