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
- Release ≥1.5.2 with Python 3.13 support
- FakeDate: raise when comparing FakeDate and datetime objects
- fake_perf_counter doesnt handle 1 argument as perf_counter does
- Huge performance degradation on Py 3.12
- FG incorrectly causes monotonic time to go back
- Possible to patch user-defined functions?
- Remove reference to `utcnow` is README, use inline markup
- [Bug] `tz_offset` shifts `datetime` which is instantiated with `tz` argument
- Adds Spanish documentation
- Freeze time doesn't work with FastAPI + pydantic V2
- Docs
- Python not yet supported