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.0.tar.gz 0000029270 28.6 KB
python-time-machine.changes 0000005803 5.67 KB
python-time-machine.spec 0000002323 2.27 KB
Revision 15 (latest revision is 16)
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1157878 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 15)
- update to 2.14.0:
  * Fix utcfromtimestamp() warning on Python 3.12+.
  * Fix utcfromtimestamp() warning on Python 3.12+.
  * Fix class decorator for classmethod overrides.
  * Avoid calling deprecated uuid._load_system_functions() on
    Python 3.9+.
  * Avoid calling deprecated uuid._load_system_functions() on
    Python 3.9+.
  * Thanks to Nikita Sobolev for the ping in CPython Issue
  * Support Python 3.13 alpha 4.

  - Mock time.monotonic() and time.monotonic_ns().
Comments 0
openSUSE Build Service is sponsored by