Hacker GitHub

← All repos

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

Mentions per year 6 mentions · busiest year 2013 (1)
20082026
  1. …Alternatively, if you're using Python, use the freezegun library to fix the current time in tests: https://github.com/spulec/freezegun
  2. …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
  3. …business_logic() test_business_logic() [1]: https://hypothesis.readthedocs.io/en/latest/ [2]: https://github.com/spulec/freezegun
  4. …touching the C code. [0] http://github.com/gabrielfalcao/sure -- where forbiddenfruit started) [1] http://github.com/spulec/freezegun