summaryrefslogtreecommitdiff
path: root/service
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-23 16:52:05 +0100
commit8640658dca9c2a37f01922a127749af7eec7501e (patch)
treef8a312f277de5b256f81559737f8844471a1599c /service
parent2a145e20398463d48e3756fb0e6edb2ce31e3f60 (diff)
remove an unnecessary patch
Diffstat (limited to 'service')
-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 5c5cf9be..abae46d8 100644
--- a/service/test/unit/config/test_sessions.py
+++ b/service/test/unit/config/test_sessions.py
@@ -55,11 +55,10 @@ class SessionTest(AbstractLeapTest):
@defer.inlineCallbacks
def test_that_sync_defers_to_soledad(self):
- 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'
@@ -159,4 +158,6 @@ class SessionTest(AbstractLeapTest):
def _execute_func(func):
+ print 'in _execute_func, before executing', func
func()
+ print 'in _execute_func, after executing', func