chartjes/opencfp — pull request #100 by michaelmoussa (2014-07-17 03:07:28+00:00)
Title: Travis fixes to get WebTest to pass

There were two issues with WebTest on Travis:

1. The default `enddate` in the development config was in the past, so the pages the test was visiting were responding with `500` errors.
2. An exception would be thrown when attempting to send an e-mail, because there is no mail server available.

I fixed (1) by using a separate config file for Travis, and (2) by using a nifty python hack to spit the smtp stuff to stdout instead of trying to send the actual e-mail.

The extra config file could probably be avoided by replacing the re-reading of the config files in the relevant controller actions with some kind of DI-based config that the tests could override, but this PR at least gives the project the baseline of a [passing build](https://travis-ci.org/michaelmoussa/opencfp/builds/30134702).

BTW don't forget to add the Travis hook in the project's Github settings - noticed it wasn't there yet...