AdrianGaudebert/socorro — pull request #2 by peterbe (2012-12-21 18:45:39+00:00)
Title: refactoring for crontabber job integration tests

This patch got bigger than I had hoped but I deem it necessary.

What happened is that in your test_automatic_emails.py you weren't cleaning up the crontabber_state table. Look at the other `cron/jobs/test_*.py` files that were integration tests.

I too got strange and weird errors which seemed unrelated. Adding this fix solved all of that.

So once I realized there are now 4 classes that repeated the same ugly setUp code I refactored them to use one shared integration base test case class.