From 2bd23a0c396eb13cd10e9fc5f599f62ec6cb795f Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 29 Jul 2015 13:41:01 -0300 Subject: disable events for integration tests --- service/test/support/integration/soledad_test_base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'service') diff --git a/service/test/support/integration/soledad_test_base.py b/service/test/support/integration/soledad_test_base.py index 2ebd6749..8ab8ae01 100644 --- a/service/test/support/integration/soledad_test_base.py +++ b/service/test/support/integration/soledad_test_base.py @@ -13,9 +13,9 @@ # # You should have received a copy of the GNU Affero General Public License # along with Pixelated. If not, see . -from twisted.internet import defer from twisted.trial import unittest from test.support.integration.app_test_client import AppTestClient +from leap.common.events import set_events_enabled class SoledadTestBase(unittest.TestCase, AppTestClient): @@ -24,7 +24,9 @@ class SoledadTestBase(unittest.TestCase, AppTestClient): DEFERRED_TIMEOUT_LONG = 300 def setUp(self): + set_events_enabled(False) return self.start_client() def tearDown(self): + set_events_enabled(True) self.cleanup() -- cgit v1.2.3