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.4.1.tar.gz 0000025472 24.9 KB
python-time-machine.changes 0000002002 1.96 KB
python-time-machine.spec 0000002020 1.97 KB
Revision 9 (latest revision is 36)
Sebastian Wagner's avatar Sebastian Wagner (sebix) accepted request 940399 from Petr Gajdos's avatar Petr Gajdos (pgajdos) (revision 9)
- pytest-runner is not required for build
Comments 0
openSUSE Build Service is sponsored by