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
- Freezegun doesn't work with django.db.models.functions.now()
- freeze time with "America/Los_Angeles" timezone produces unexpected result
- Support selective patching
- Raw class instances don't support the tick and move_to methods
- potential feature request; flag to apply to file attributes?
- `datetime_to_fakedatetime` function ignores `fold` parameter
- Add basic fold support
- 1.1.0: pytest is failing with new setuptools
- Behavior does not match expectations
- Breaks with jsons
- Docs
- Python not yet supported