diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2015-07-14 22:21:46 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-11 17:00:22 +0200 |
commit | cb58ced6ecd0cfd4592ccd9b6d23355988263111 (patch) | |
tree | 28d594ea13c5ed396ece30dc908f0be51a24b55c /service | |
parent | ee459de93e275aa303d505e3012b4d5602eae967 (diff) |
fix test_session
Diffstat (limited to 'service')
-rw-r--r-- | service/test/unit/bitmask_libraries/test_session.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/service/test/unit/bitmask_libraries/test_session.py b/service/test/unit/bitmask_libraries/test_session.py index 93f32445..ea73af8c 100644 --- a/service/test/unit/bitmask_libraries/test_session.py +++ b/service/test/unit/bitmask_libraries/test_session.py @@ -35,7 +35,7 @@ class SessionTest(AbstractLeapTest): with patch('pixelated.bitmask_libraries.session.reactor.callFromThread', new=_execute_func) as _: self._create_session() - self.mail_fetcher_mock.start_loop.assert_called_once_with() + self.mail_fetcher_mock.startService.assert_called_once_with() def test_background_jobs_are_not_started(self): self.config.start_background_jobs = False @@ -51,7 +51,7 @@ class SessionTest(AbstractLeapTest): session.close() - self.mail_fetcher_mock.stop.assert_called_once_with() + self.mail_fetcher_mock.stopService.assert_called_once_with() def test_that_sync_deferes_to_soledad(self): session = self._create_session() @@ -61,7 +61,7 @@ class SessionTest(AbstractLeapTest): self.soledad_session.sync.assert_called_once_with() def _create_session(self): - return LeapSession(self.provider, self.auth, self.soledad_session, self.nicknym, + return LeapSession(self.provider, self.auth, self.soledad_session, self.nicknym, self.soledad_account, self.mail_fetcher_mock, self.smtp_mock) |