diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2015-02-03 09:14:10 -0200 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2015-02-03 12:36:17 -0200 |
commit | 6904acf34524b84d70d0054a5bb953a1bf9c784a (patch) | |
tree | 491716eed52ae2acaed11584add6ba13af19295f /service/test/support/integration/soledad_test_base.py | |
parent | ab6955b3fbc5b89ad80fcade0702b54efb9ef682 (diff) |
Enabling integration tests to be run in parallel
If we were using twisted 12.3.0, this change would allow us to run the
tests with 'trial -j <number of tests to run in parallel>'. In a simple
test in my box the integration test suite got 3x faster
Diffstat (limited to 'service/test/support/integration/soledad_test_base.py')
-rw-r--r-- | service/test/support/integration/soledad_test_base.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/service/test/support/integration/soledad_test_base.py b/service/test/support/integration/soledad_test_base.py index eea510b9..60b88768 100644 --- a/service/test/support/integration/soledad_test_base.py +++ b/service/test/support/integration/soledad_test_base.py @@ -27,6 +27,9 @@ class SoledadTestBase(unittest.TestCase): def setUp(self): self.client = AppTestClient() + def tearDown(self): + self.client.cleanup() + def get_mails_by_tag(self, tag, page=1, window=100): tags = 'tag:%s' % tag return self.search(tags, page, window) |