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: FakeDatetime.now() in freezegun/api.py applied `+ cls._tz_offset()`...
- Remove stale Python 3.7 version guards in tests
- Pin actions/checkout to v4 instead of @master
- 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
- Docs
- Python not yet supported