Travel through time in your tests

Edit Package python-time-machine
https://github.com/adamchainz/time-machine

This library mocks all functions from Python's standard library that return the current date or datetime.
It can be used independently, as a function decorator, or as a context manager.

Refresh
Refresh
Source Files
Filename Size Changed
python-time-machine-2.9.0.tar.gz 0000028043 27.4 KB
python-time-machine.changes 0000004411 4.31 KB
python-time-machine.spec 0000002290 2.24 KB
Revision 23 (latest revision is 36)
Sebastian Wagner's avatar Sebastian Wagner (sebix) accepted request 1089984 from Benjamin Greiner's avatar Benjamin Greiner (bnavigator) (revision 23)
- Move to PEP517
- Do not use pytzdata, but system timezone directly
- Don't catchall sitearch
Comments 0
openSUSE Build Service is sponsored by