freezegun
https://github.com/spulec/freezegun
Python
Let your Python tests travel through time
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Python not yet supported1 Subscribers
Add a CodeTriage badge to freezegun
Help out
- Issues
- fix(astimezone): resolve to a fixed-offset timezone, not tzlocal()
- feat: configure() returns prior default_ignore_list
- Ignore `_pytest.timing` so frozen tests report real durations
- fix: preserve FakeDate == datetime on Python 3.13+
- fix: keep freeze_time across Process on Python 3.14
- fix: preserve datetime fold in FakeDatetime conversions
- Fix StepTickTimeFactory.tick() treating timedelta(0) as missing delta
- refactor: remove py37 from tox
- Freezegun Causes Repeated EDT 1am During DST
- fix: expose real_date_today() and real_datetime_today() to bypass frozen time.time()
- Docs
- Python not yet supported