FICHA · MANJARO

python-time-machine

Travel through time in your tests

  • Library
  • Dev
  • Dependency only
official+codex · reviewed · May 28, 2026 description in en

Description

Mocks or controls perceived time in Python tests so code can be checked against past, future, or frozen timestamps. It helps test expiration, scheduling, logging, and time-dependent behavior without waiting in real time.

Developers use it as a testing library. Time mocking should be isolated carefully, because leaked fake time can make unrelated tests fail in confusing ways.

Permissions

Permissions not analysed for this source yet.