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.14.2.tar.gz 0000029671 29 KB
python-time-machine.changes 0000006284 6.14 KB
python-time-machine.spec 0000002323 2.27 KB
Revision 33 (latest revision is 36)
Dirk Mueller's avatar Dirk Mueller (dirkmueller) committed (revision 33)
- update to 2.14.2:
  * Fix SystemError on Python 3.13 and Windows when starting time
    travelling.
Comments 0
openSUSE Build Service is sponsored by