spulec/freezegun
View on GitHub ↗ ★ 4,534 Python
Let your Python tests travel through time
6 mentions on Hacker News by 6 people: 2 stories, 4 comments · first 2013-04-03 · latest 2024-03-01
20082026
-
…Alternatively, if you're using Python, use the freezegun library to fix the current time in tests: https://github.com/spulec/freezegun
comment by yen223 · 2024-03-01 · in Ask HN: Did you encounter any leap year bugs today? -
…Python, just use freezegun to inject controllable timestamps in response to calls to time methods. https://github.com/spulec/freezegun
comment by loloquwowndueo · 2023-12-20 · in How to unit test code that depends on time -
…business_logic() test_business_logic() [1]: https://hypothesis.readthedocs.io/en/latest/ [2]: https://github.com/spulec/freezegun
comment by Dunedan · 2022-01-01 · in Microsoft Exchange stops passing mail due to bug on 1/1/22 -
…touching the C code. [0] http://github.com/gabrielfalcao/sure -- where forbiddenfruit started) [1] http://github.com/spulec/freezegun
comment by clarete · 2013-04-03 · in Show HN: Forbidden Fruit – Patch built-in Python objects