CMD + K

time-machine

Community

Travel through time in your tests.

Installation

To install this package, run one of the following:

Conda
$conda install services::time-machine

Usage Tracking

2.13.0
1 / 8 versions selected
Downloads (Last 6 months): 0

Description

time-machine is intended to combine the advantages of freezegun and libfaketime. 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.

About

Summary

Travel through time in your tests.

Last Updated

Jul 2, 2024 at 11:45

License

MIT

Total Downloads

315

Supported Platforms

linux-s390x
linux-aarch64
linux-64
macOS-arm64
macOS-64
win-64