Freezegun: time travelling in python

5 views
Skip to first unread message

Lemuel Formacil

unread,
Feb 10, 2015, 2:25:11 AM2/10/15
to python-mena
Have you guys tried this?:

https://github.com/spulec/freezegun

it let's you change the time so you can test how your code will behave at a certain datetime.

Anything similar that you guys use in your tests?  You guys write tests, right?


--
Lemuel

azizmb.in

unread,
Feb 10, 2015, 6:32:49 AM2/10/15
to Lemuel Formacil, python-mena
Nice. Much cleaner then manually mocking datetime. 

Thanks for the share lemuel!

--
You received this message because you are subscribed to the Google Groups "from mena import python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-mena...@googlegroups.com.
To post to this group, send email to pytho...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Abde Sayedna,
Aziz M. Bookwala

Abdullah Diab

unread,
Feb 10, 2015, 6:35:28 AM2/10/15
to azizmb.in, Lemuel Formacil, python-mena
Tests? Do we need to do them? I speak programming :P


Abdullah Diab, Software Engineer.
Amsterdam, Netherlands
Mobile: +31 (0) 62 00 64 011
mpc...@gmail.com
http://mpcabd.igeex.biz

 LinkedIn  Blog RSS  Twitter

Abdullah Diab

unread,
Feb 10, 2015, 6:38:21 AM2/10/15
to azizmb.in, Lemuel Formacil, python-mena
Speaking of tests, anyone watched this? http://vimeo.com/110554082 



Abdullah Diab, Software Engineer.
Amsterdam, Netherlands
Mobile: +31 (0) 62 00 64 011
mpc...@gmail.com
http://mpcabd.igeex.biz

 LinkedIn  Blog RSS  Twitter

Reply all
Reply to author
Forward
0 new messages