From 4777ad0d3ec5378de8b0c7ffbcecf2e19ad9c180 Mon Sep 17 00:00:00 2001 From: Bruno Wagner Date: Mon, 3 Aug 2015 19:18:31 -0300 Subject: [tests] Skipped tests that were not implemented Functionality that is not implemented should not fail, instead it should be skipped until it is implemented. Added a return to test_imap_store_fetch setup to make sure the deferred is being handled --- src/leap/mail/adaptors/tests/test_soledad_adaptor.py | 2 +- src/leap/mail/imap/tests/test_imap_store_fetch.py | 2 +- src/leap/mail/tests/test_mail.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/leap/mail/adaptors/tests/test_soledad_adaptor.py b/src/leap/mail/adaptors/tests/test_soledad_adaptor.py index 3dc79fe..bdc2c48 100644 --- a/src/leap/mail/adaptors/tests/test_soledad_adaptor.py +++ b/src/leap/mail/adaptors/tests/test_soledad_adaptor.py @@ -364,7 +364,7 @@ class SoledadMailAdaptorTestCase(SoledadTestMixin): def test_get_msg_from_metamsg_doc_id(self): # TODO complete-me! - self.fail() + self.skipTest("Not yet implemented") def test_create_msg(self): adaptor = self.get_adaptor() diff --git a/src/leap/mail/imap/tests/test_imap_store_fetch.py b/src/leap/mail/imap/tests/test_imap_store_fetch.py index 81f88fe..a71ff45 100644 --- a/src/leap/mail/imap/tests/test_imap_store_fetch.py +++ b/src/leap/mail/imap/tests/test_imap_store_fetch.py @@ -14,9 +14,9 @@ class StoreAndFetchTestCase(IMAP4HelperMixin): """ def setUp(self): - IMAP4HelperMixin.setUp(self) self.received_messages = self.received_uid = None self.result = None + return IMAP4HelperMixin.setUp(self) def addListener(self, x): pass diff --git a/src/leap/mail/tests/test_mail.py b/src/leap/mail/tests/test_mail.py index 2c03933..2872f15 100644 --- a/src/leap/mail/tests/test_mail.py +++ b/src/leap/mail/tests/test_mail.py @@ -271,7 +271,7 @@ class MessageCollectionTestCase(SoledadTestMixin, CollectionMixin): def test_copy_msg(self): # TODO ---- update when implementing messagecopier # interface - self.fail("Not Yet Implemented") + self.skipTest("Not yet implemented") def test_delete_msg(self): d = self.add_msg_to_collection() @@ -390,7 +390,7 @@ class AccountTestCase(SoledadTestMixin): # XXX not yet implemented def test_get_collection_by_docs(self): - self.fail("Not Yet Implemented") + self.skipTest("Not Yet Implemented") def test_get_collection_by_tag(self): - self.fail("Not Yet Implemented") + self.skipTest("Not Yet Implemented") -- cgit v1.2.3