Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You could also do this with freezegun or time-machine without changing the function signature. Although I guess your way is less off-putting for people who don't like tests.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: