summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/tests/test_imap.py
AgeCommit message (Collapse)Author
2015-12-15[fix] dummy credentials for testsKali Kaneko
imap tests must be adapted, using a dummy credential checker.
2015-07-21Changed imap tests and messages assigned lambdas to functions because of pep8Bruno Wagner
2015-07-21Fixed all the pep8 warnings in the codeBruno Wagner
2015-03-30[bug] fix early append notificationKali Kaneko
There's a workaround for "slow" APPENDS to an inbox, and it is that we have a flag to allow returning early when JUST the mdoc (the meta-document) has been written. However, this was givin a problem when doing a FETCH right after an APPEND (with notify_just_mdoc=True) has been done. This commit fixes it by making the FETCH command first check if there's an ongoing pending write, and queueing itself right after the write queue has been completed. This fixes the testFullAppend regression. Releases: 0.4.0
2015-03-03[bug] Fix testExpunge testsKali Kaneko
this test was failing randomly because we were returning the deferred before all the documents were saved into soledad store. changed also the delete_msg deferred chaining for better readability. Releases: 0.9.0
2015-03-03[bug] Fix IllegalMailboxCreateKali Kaneko
We're raising the exception now, not a Failure. Releases: 0.9.0
2015-03-03[refactor] remove dead code in IMAP implementationKali Kaneko
while updating the tests, I found that IMAPMessageCollection was not actually being used: all the work is done in IMAPMailbox, using directly the MessageCollection instance. So, this extra level of abstraction was finally not used. Releases: 0.9.0
2015-03-03cast generator to list; change expected after renameKali Kaneko
2015-03-03pass date explicitely, fix partial_append testKali Kaneko
it is interpreted as "tags" otherwise.
2015-02-11lots of little fixes after meskio's reviewKali Kaneko
mostly having to do with poor, missing or outdated documentation, naming of confusing things and reordering of code blocks for improved readability.
2015-02-11patch cbSelect to accept deferreds for count*Kali Kaneko
2015-02-11Complete IMAP implementation, update testsKali Kaneko
2015-02-11Use mailbox uuidsKali Kaneko
The previous implementation is naive, since it imposes a burden when renaming mailboxes. We're using uuids in the local uid tables instead, which is more cryptic but way more efficient. * receive mbox uuid instead of name * use mailbox uuid in identifiers
2015-02-11Serializable Models + Soledad AdaptorKali Kaneko
2015-02-11adapt to soledad 0.7 async APIKali Kaneko
2014-10-13Get keys from OpenPGP email headerRuben Pollan
2014-09-10add test for empty mailbox creationKali Kaneko
2014-09-03split tests in different modulesKali Kaneko
2014-09-03fix and migrate tests to trialKali Kaneko
We cannot use setUpClass when running tests with trial. But, after all, it's not *so* expensive to initialize a new soledad instance (since we'll be mostly using the memstore for the tests).
2014-08-21On the mac, the tempdir is not created at /tmp, so checking the tempdir ↵Bruno Wagner Goncalves
format instead
2014-02-17long-due update to unittests!Kali Kaneko
So we're safe under the green lights before further rewriting. :)
2014-01-08tests infrastructure for multipartKali Kaneko
2014-01-08fix tests after rewriteKali Kaneko
2013-12-24Fix parsing of IMAP folder names (#4830).drebs
2013-12-13count_foo uses expanded u1db count method.Kali Kaneko
Other fixes in the commit: * Correct the semantic for the recent flag (reset) * Minor unicode fixes. * Use a field for tracking the last_uid In general, this tries to squash all the quick and naive methods that were relying on evaluating all the message objects before returning a result. Further work is still needed, planned also for 0.5 release. get_by_index needs to be indexed too.
2013-12-11consume messages eagerlyKali Kaneko
2013-12-10make exceptions fail the test.Kali Kaneko
right now, the exceptions were visible in the stdout, but the test was not *actually* failing. using nose deferred decorator for this.
2013-12-06pep8 cleanupKali Kaneko
2013-11-21Add a header that reflects the validity of incoming signatures. Closes #4354.drebs
2013-11-07Cleanup code and fix tests.drebs
2013-08-21Update to new soledad package scheme.drebs
2013-07-22Adapt IMAP to latest Soledad api.drebs
* Also fix some tests that where not up-to-date with code.
2013-05-17Functional SoledadBackedAccount and LeapMailboxesKali Kaneko
The imap service is launched from the tac file, and still needs some information to be provided in separate config files that stub much of the initialization parameters. working fetch and store methods. tested with offlineimap and thunderbird. several mailboxes might be broken.
2013-04-09Initial importKali Kaneko