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
- 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()
- Support Python 3.14
- Frozen time is not transfered to `multiprocess.Process` since Python 3.14
- Address sporadic "dictionary changed size during iteration" RuntimeError
- 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
- Docs
- Python not yet supported