freezegun
Package — TestingPython 3.7+Intermediate
Mock datetime for testing time-dependent code
Quick Info
- Documentation
- Official Docs
- Python Version
- 3.7+
- Dependencies
- python-dateutil
- Install
pip install freezegun
Learn by Difficulty
Quick Example
python
# Install: pip install freezegun import freezegun # Basic freezegun usage print(f"Using freezegun") # See documentation for detailed examples
freezegun is a third-party package. Mock datetime for testing time-dependent code. Install with: pip install freezegun
Try in PlaygroundTags
packagetestingquality-assurance