diff options
author | Bruno Wagner <bwagner@riseup.net> | 2016-01-13 16:36:42 -0200 |
---|---|---|
committer | Bruno Wagner <bwagner@riseup.net> | 2016-01-13 16:41:12 -0200 |
commit | 8046a75c14778cff19c0543b2df9b70d1a168e3f (patch) | |
tree | 73a9bb1a51975b232aee08ceeb6230b8f1862896 /service/test | |
parent | 9d9e1d5feb1d53f85d13c6879a6bd00729c7f37f (diff) |
Removed unused logging imports and fixed maintenance logger during test
Diffstat (limited to 'service/test')
-rw-r--r-- | service/test/integration/test_leap_mailstore.py | 8 | ||||
-rw-r--r-- | service/test/unit/adapter/mailstore/maintenance/test_soledad_maintenance.py | 4 |
2 files changed, 4 insertions, 8 deletions
diff --git a/service/test/integration/test_leap_mailstore.py b/service/test/integration/test_leap_mailstore.py index 9e63c693..e28fbe5d 100644 --- a/service/test/integration/test_leap_mailstore.py +++ b/service/test/integration/test_leap_mailstore.py @@ -60,14 +60,6 @@ class LeapMailStoreTest(SoledadTestBase): mail = yield self.mail_store.add_mail('INBOX', input_mail.as_string()) fetched_mail = yield self.mail_store.get_mail(mail.ident, include_body=True) - # _, docs = yield self.soledad.get_all_docs() - # for doc in docs: - # print '\n%s\n' % doc - - # self.assertEqual(1, len(mail.as_dict()['attachments'])) - # print fetched_mail.as_dict() - # self.assertEqual(1, len(fetched_mail.as_dict()['attachments'])) - @defer.inlineCallbacks def test_all_mails(self): mail = load_mail_from_file('mbox00000000') diff --git a/service/test/unit/adapter/mailstore/maintenance/test_soledad_maintenance.py b/service/test/unit/adapter/mailstore/maintenance/test_soledad_maintenance.py index 9a89d62b..e46d6864 100644 --- a/service/test/unit/adapter/mailstore/maintenance/test_soledad_maintenance.py +++ b/service/test/unit/adapter/mailstore/maintenance/test_soledad_maintenance.py @@ -20,6 +20,10 @@ from twisted.trial import unittest from mockito import mock, when, verify, never from pixelated.adapter.mailstore.maintenance import SoledadMaintenance from leap.keymanager.openpgp import OpenPGPKey +import logging + +logging.getLogger('pixelated.adapter.mailstore.maintenance').addHandler(logging.NullHandler()) + SOME_EMAIL_ADDRESS = 'foo@example.tld' SOME_KEY_ID = '4914254E384E264C' |