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: make `ignore` actually takes effect for `today` and `utcnow`
- Fix datetime.datetime.now() different behavior with and without freeze_time usage
- datetime.now with tzinfo behaviour does not match built-in behaviour
- Please have freezegun.configure return the prior default_ignore_list to help with custom pytest fixture implementations
- `real_date.today()` and `real_datetime.today()` are not real
- Fix fake_perf_counter not working with fontTools
- Set uuid._last_timestamp_v7=None to reset uiud7() when enter/exit context
- Python 3.13.8 compatibility issues
- Compatability with `datetime.astimezone()`
- [Py3.11] RuntimeError: dictionary changed size during iteration
- Docs
- Python not yet supported