1
0
Fork 0

add DJANGO_MAILBOX_ATTACHMENT_UPLOAD_TO setting

This commit is contained in:
eupharis 2015-06-22 17:07:51 -06:00
parent 688759bd7a
commit 1a04087159
5 changed files with 27 additions and 2 deletions

View file

@ -3,3 +3,4 @@ from .test_message_flattening import *
from .test_process_email import *
from .test_transports import *
from .test_integration_imap import *
from .test_settings import *

View file

@ -0,0 +1,10 @@
from django.test import TestCase
from django.conf import settings
from django_mailbox.models import ATTACHMENT_UPLOAD_TO
class TestSettings(TestCase):
def test_default_attachment_upload_to(self):
user_setting = getattr(settings, 'DJANGO_MAILBOX_ATTACHMENT_UPLOAD_TO', False)
self.assertFalse(user_setting)
self.assertEqual(ATTACHMENT_UPLOAD_TO, 'mailbox_attachments/%Y/%m/%d/')