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
- `ignore` doesn't seem to work in more complicated setup (Django + S3 / boto)
- Marshmallow's default values are not changed by Freezegun
- Slowest test times from pytest are incorrect
- Inconsistency between datetime.now() and time.time()
- TypeError: fake_time() takes 0 positional arguments but 1 was given
- tz_offset and datetime.now(utc) don't interact correctly
- Bizarre errors from Pandas when using the decorator
- Faked time shouldn't always be the same.
- Docs
- Python not yet supported