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.6.0.tar.gz 0000026242 25.6 KB
python-time-machine.changes 0000002598 2.54 KB
python-time-machine.spec 0000002020 1.97 KB
Revision 13 (latest revision is 36)
Dirk Mueller's avatar Dirk Mueller (dirkmueller) committed (revision 13)
- update to version 2.6.0:
  * Drop Python 3.6 support.
- update to version 2.5.0:
  * Add ``time_machine.escape_hatch``, which provides functions to bypass
    time-machine.
    Thanks to Matt Pegler for the feature request in `Issue #206
    <https://github.com/adamchainz/time-machine/issues/206>`__.
Comments 0
openSUSE Build Service is sponsored by