shaunagm / WelcomeBot

Other
35 stars 43 forks source link

Improve tests by making a mockup of time #33

Open shaunagm opened 10 years ago

shaunagm commented 10 years ago

This is slightly advanced testing bizness. Basically, right now the testing suite is testing the time-sensitive aspects of the welcomebot code by using .sleep(), but @nedbat points out that a more robust way to do this is to make a mock time (like we do with the ircsock object). If anyone wants to pair with me on this, let me know!