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.3.1.tar.gz 0000024775 24.2 KB
python-time-machine.changes 0000001445 1.41 KB
python-time-machine.spec 0000002027 1.98 KB
Revision 4 (latest revision is 36)
Sebastian Wagner's avatar Sebastian Wagner (sebix) committed (revision 4)
- update to version 2.3.1:
 - Build universal2 wheels for Python 3.8 on macOS.
- update to version 2.3.0:
 - Allow passing ``tick`` to ``Coordinates.move_to()`` and the pytest fixture’s
   ``time_machine.move_to()``. This allows freezing or unfreezing of time when
   travelling.
Comments 0
openSUSE Build Service is sponsored by