Tag

freezegun

0 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
Apr 10, 2024 · Fundamentals

Using freezegun to Mock and Freeze Time in Python Tests

freezegun is a Python library that lets developers mock and freeze the current time, enabling precise control over time‑dependent code during unit testing, with examples covering basic usage, timezone handling, complex datetime objects, and dynamic time manipulation.

DateTimefreezegunmocking
0 likes · 3 min read
Using freezegun to Mock and Freeze Time in Python Tests