FreeBSD.software
Home/devel/py311-time-machine

py311-time-machine

2.13.0devel

Travel through time in your Python tests

time-machine is intended to combine the advantages of freezegun and libfaketime Python modules. It works without LD_PRELOAD but still mocks the standard library functions everywhere they may be referenced. It does so by modifying the built-in functions at the C level, to point them through wrappers that return different values when mocking. Normally in Python, built-in functions are immutable, but time-machine overcomes this by using C code to replace their function pointers.

$pkg install py311-time-machine
github.com/adamchainz/time-machine
Origin
devel/py-time-machine
Size
100KiB
License
MIT
Maintainer
nivit@FreeBSD.org
Dependencies
3 packages
Required by
1 packages

Dependencies (3)

Required By (1)