summaryrefslogtreecommitdiff
path: root/service/test/unit/config
diff options
context:
space:
mode:
authorRoald de Vries <rdevries@thoughtworks.com>2016-11-23 16:52:05 +0100
committerRoald de Vries <rdevries@thoughtworks.com>2016-11-24 09:16:50 +0100
commit2bb90fd6784604858d0c8473fcd8ec3db635a639 (patch)
tree0a4e2491ecfd90c7c31f2d7c415845c894551b88 /service/test/unit/config
parente97345b4527f5f22272573fc769a7d5f6800235b (diff)
remove an unnecessary patch
Diffstat (limited to 'service/test/unit/config')
-rw-r--r--service/test/unit/config/test_sessions.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/service/test/unit/config/test_sessions.py b/service/test/unit/config/test_sessions.py
index 007371ea..40f1bedc 100644
--- a/service/test/unit/config/test_sessions.py
+++ b/service/test/unit/config/test_sessions.py
@@ -60,11 +60,10 @@ class SessionTest(AbstractLeapTest):
# 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')
- with patch('pixelated.config.sessions.reactor.callFromThread', new=_execute_func) as _:
- with patch('pixelated.config.sessions.LeapSession._create_incoming_mail_fetcher') as mail_fetcher_mock:
- session = self._create_session()
- yield session.sync()
- self.soledad_session.sync.assert_called_once()
+ with patch('pixelated.config.sessions.LeapSession._create_incoming_mail_fetcher') as mail_fetcher_mock:
+ session = self._create_session()
+ yield session.sync()
+ self.soledad_session.sync.assert_called_once()
def test_session_registers_to_generated_keys(self):
email = 'someone@somedomain.tld'
@@ -164,4 +163,6 @@ class SessionTest(AbstractLeapTest):
def _execute_func(func):
+ print 'in _execute_func, before executing', func
func()
+ print 'in _execute_func, after executing', func