python3-freezegun

Python3 library to mock the datetime module in unit testing

Description

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.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/spulec/freezegun


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install python3-freezegun