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.