diff options
Diffstat (limited to 'service/test/support')
-rw-r--r-- | service/test/support/integration_helper.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/service/test/support/integration_helper.py b/service/test/support/integration_helper.py index 5975b9e8..c2f84157 100644 --- a/service/test/support/integration_helper.py +++ b/service/test/support/integration_helper.py @@ -34,10 +34,21 @@ from pixelated.adapter.soledad_querier import SoledadQuerier soledad_test_folder = "soledad-test" +class FakeLeapMailboxWithListeners: + def __init__(self): + self.listeners = set() + + def addListener(self, listener): + self.listeners.add(listener) + + class FakeAccount: def __init__(self): self.mailboxes = ['INBOX', 'DRAFTS', 'SENT', 'TRASH'] + def getMailbox(self, name): + return FakeLeapMailboxWithListeners() + def initialize_soledad(tempdir): uuid = "foobar-uuid" |