summaryrefslogtreecommitdiff
path: root/service/test/unit/adapter
diff options
context:
space:
mode:
authorFelix Hammerl <fhammerl@thoughtworks.com>2016-02-08 17:54:58 +0100
committerFelix Hammerl <fhammerl@thoughtworks.com>2016-02-08 18:10:53 +0100
commit3c6b905d7e5b78e521b2e7692e5e32b7b0c226bc (patch)
treefd889e2aaa4fdd29c372b4d83fdc38453d2c1a2e /service/test/unit/adapter
parentc16af6af2fa6798f5c3f9badfb445e87982e9dc3 (diff)
Revert "Issue #549 - Implemented remove attachment"
This reverts commit 9442be5c230e286073244451189ffc05ae6c8083.
Diffstat (limited to 'service/test/unit/adapter')
-rw-r--r--service/test/unit/adapter/mailstore/test_leap_attachment_store.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/service/test/unit/adapter/mailstore/test_leap_attachment_store.py b/service/test/unit/adapter/mailstore/test_leap_attachment_store.py
index f1bd8528..4e9b56b1 100644
--- a/service/test/unit/adapter/mailstore/test_leap_attachment_store.py
+++ b/service/test/unit/adapter/mailstore/test_leap_attachment_store.py
@@ -116,21 +116,6 @@ class TestLeapAttachmentStore(TestCase):
except ValueError:
pass
- @defer.inlineCallbacks
- def test_soledad_delete_doc_is_called_when_deleting_an_attachment(self):
- attachment_id = '1B0A9AAD9E153D24265395203C53884506ABA276394B9FEC02B214BF9E77E48E'
- doc = SoledadDocument(json=json.dumps({'content_type': 'foo/bar', 'raw': 'quoted-printable',
- 'phash': attachment_id,
- 'content_transfer_encoding': ''}))
-
- when(self.soledad).get_from_index('by-type-and-payloadhash', 'cnt', attachment_id).thenReturn(defer.succeed([doc]))
- when(self.soledad).delete_doc(doc).thenReturn(defer.succeed(None))
-
- store = LeapAttachmentStore(self.soledad)
- yield store.delete_attachment(attachment_id)
-
- verify(self.soledad).delete_doc(doc)
-
def _mock_get_mailbox(self, mailbox_name, create_new_uuid=False):
mbox_uuid = self.mbox_uuid if not create_new_uuid else str(uuid4())
when(self.soledad).list_indexes().thenReturn(defer.succeed(MAIL_INDEXES)).thenReturn(