summaryrefslogtreecommitdiff
path: root/service/test/support/integration/soledad_test_base.py
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2015-02-03 09:14:10 -0200
committerDuda Dornelles <ddornell@thoughtworks.com>2015-02-03 12:36:17 -0200
commit6904acf34524b84d70d0054a5bb953a1bf9c784a (patch)
tree491716eed52ae2acaed11584add6ba13af19295f /service/test/support/integration/soledad_test_base.py
parentab6955b3fbc5b89ad80fcade0702b54efb9ef682 (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.py3
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)