Travel through time in your tests
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.
- Devel package for openSUSE:Factory
-
3
derived packages
- Links to openSUSE:Factory / python-time-machine
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout devel:languages:python/python-time-machine && cd $_
- Create Badge
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 (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