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.2.tar.gz 0000027856 27.2 KB
python-time-machine.changes 0000003629 3.54 KB
python-time-machine.spec 0000002084 2.04 KB
Revision 17 (latest revision is 36)
Sebastian Wagner's avatar Sebastian Wagner (sebix) accepted request 1032223 from Yogalakshmi Arunachalam's avatar Yogalakshmi Arunachalam (yarunachalam) (revision 17)
- Update to version 2.8.2 
  * Improve type hints for time_machine.travel() to preserve the types of the wrapped function/coroutine/class.
Comments 0
openSUSE Build Service is sponsored by