summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRoald de Vries <rdevries@thoughtworks.com>2016-11-23 17:59:31 +0100
committerRoald de Vries <rdevries@thoughtworks.com>2016-11-24 09:16:50 +0100
commit45f5b15c4818eb46d2f9b26fe7173a4e6ee9ede4 (patch)
treefe6585188844158c30e54f224faa745f10f7237a /service
parentcd6c7dcb2fb0f1241bedaf0233971bae8403b68e (diff)
mock out event registration for failing test in SnapCI
Diffstat (limited to 'service')
-rw-r--r--service/test/unit/config/test_sessions.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/service/test/unit/config/test_sessions.py b/service/test/unit/config/test_sessions.py
index d12095c9..a7e62c7a 100644
--- a/service/test/unit/config/test_sessions.py
+++ b/service/test/unit/config/test_sessions.py
@@ -55,11 +55,9 @@ class SessionTest(AbstractLeapTest):
session.close()
mail_fetcher_mock.stopService.assert_called_once()
+ @patch('pixelated.config.sessions.register')
@defer.inlineCallbacks
- def test_that_sync_defers_to_soledad(self):
- # TODO: fix this in SnapCI
- if os.environ.get('SNAP_CI') == 'true':
- raise unittest.SkipTest('Skip this test in SnapCI, because it fails for misterious reasons')
+ def test_that_sync_defers_to_soledad(self, *unused):
session = self._create_session()
yield session.sync()
self.soledad_session.sync.assert_called_once()