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.8.1.tar.gz 0000027135 26.5 KB
python-time-machine.changes 0000003341 3.26 KB
python-time-machine.spec 0000002084 2.04 KB
Revision 15 (latest revision is 32)
Sebastian Wagner's avatar Sebastian Wagner (sebix) committed (revision 15)
- update to version 2.8.1:
 - Actually build Python 3.11 wheels.
- update to version 2.8.0:
 - Build Python 3.11 wheels.
- update to version 2.7.1:
 - Fix usage of ``ZoneInfo`` from the ``backports.zoneinfo`` package.
   This makes ``ZoneInfo`` support work for Python < 3.9.
- update to version 2.7.0:
 - Support Python 3.11 (no wheels yet, they will only be available when Python 3.11 is RC when the ABI is stable).
Comments 0
openSUSE Build Service is sponsored by