1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 22:38:19 +02:00
Commit graph

10 commits

Author SHA1 Message Date
Adam Coddington
b4a3cdc843 Switch from nose to py.test. 2016-05-14 22:06:32 -07:00
Adam Coddington
f706cacd27 Skip integration tests if there are missing environment variables.
This should allow Pull Requests to properly run all non-integration tests.

Squashed commit of the following:

commit a03e2a6592234e089d1fe9adc360b1e33a0c4b57
Author: Adam Coddington <me@adamcoddington.net>
Date:   Tue Jul 21 22:57:27 2015 -0700

    Removing a dummy empty variable.

commit cd5964ab59
Author: Adam Coddington <me@adamcoddington.net>
Date:   Tue Jul 21 22:52:52 2015 -0700

    Removing unused import.

commit 39b67b8562
Author: Adam Coddington <me@adamcoddington.net>
Date:   Tue Jul 21 22:52:35 2015 -0700

    Use TestCase.skipTest.

commit 63d6dad73e
Author: Adam Coddington <me@adamcoddington.net>
Date:   Tue Jul 21 22:44:16 2015 -0700

    Testing something out to make sure integration tests will fail.

commit 51f0cf44bf
Author: Adam Coddington <me@adamcoddington.net>
Date:   Tue Jul 21 22:38:50 2015 -0700

    Adding unittest2 to requirements so we can skip tests on Python 2.6.

commit 3cc035f58b
Author: Adam Coddington <me@adamcoddington.net>
Date:   Tue Jul 21 20:56:04 2015 -0700

    Try skipping integration tests if not all environment variables are available.
2015-07-21 22:57:41 -07:00
Adam Coddington
988cb7504f Adding a more-versatile condition-handling method for preventing integration tests from mashing on one another. 2015-07-07 22:22:15 -07:00
Adam Coddington
634f2f4b26 Adding basic integration tests. 2015-04-12 12:11:39 -07:00
Adam Dobrawy
552e033655 Added test django_mailbox.tests.test_process_email.TestProcessEmail.test_message_reply 2015-03-15 00:42:57 +01:00
Alex Lovell-Troy
ec18a01880 Refactored the imap transport based on the tests
Testing the switch to uid-based IMAP calls required better testing
The better testing revealed some code that wasn't so pretty

I fixed the tests and the code
2014-05-29 23:41:11 -06:00
Adam Coddington
3b2d60a903 Actually fixing Python 3 support; verified both IMAP and POP3. Fixes #13 (seriously this time). 2014-04-25 16:45:35 -07:00
Adam Coddington
88d122c421 Base64-encode message body when storing in DB.
* Since Django requires that the content stored in a TextField be unicode, we
  need some way to encode the message safely.  In situations before where
  a single-byte non-7-bit-clean encoding were used, django-mailbox could
  explode when writing the message copy to the database; this should ameliorate
  that problem.
* Reverts earlier changesets' encoding normalization.
2013-07-26 22:13:29 -07:00
Adam Coddington
3ee4b43936 Cleaning up tests; moving test e-mail messages; fixing bugs relating to message encoding rehydration.
--HG--
rename : django_mailbox/tests/generic_message.eml => django_mailbox/tests/messages/generic_message.eml
rename : django_mailbox/tests/message_with_attachment.eml => django_mailbox/tests/messages/message_with_attachment.eml
rename : django_mailbox/tests/message_with_defective_attachment_association.eml => django_mailbox/tests/messages/message_with_defective_attachment_association.eml
rename : django_mailbox/tests/message_with_defective_attachment_association_result.eml => django_mailbox/tests/messages/message_with_defective_attachment_association_result.eml
rename : django_mailbox/tests/message_with_image_jpg_mimetype.eml => django_mailbox/tests/messages/message_with_image_jpg_mimetype.eml
rename : django_mailbox/tests/message_with_long_text_lines.eml => django_mailbox/tests/messages/message_with_long_text_lines.eml
rename : django_mailbox/tests/message_with_many_multiparts.eml => django_mailbox/tests/messages/message_with_many_multiparts.eml
rename : django_mailbox/tests/message_with_many_multiparts_stripped_html.eml => django_mailbox/tests/messages/message_with_many_multiparts_stripped_html.eml
rename : django_mailbox/tests/message_with_utf8_char.eml => django_mailbox/tests/messages/message_with_utf8_char.eml
rename : django_mailbox/tests/multipart_text.eml => django_mailbox/tests/messages/multipart_text.eml
2013-07-26 18:07:31 -07:00
Adam Coddington
f92e2a8448 Reorganizing tests. 2013-07-25 23:45:39 -07:00