mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-10 06:48:19 +02:00
Try skipping integration tests if not all environment variables are available.
This commit is contained in:
parent
498f38c461
commit
3cc035f58b
2 changed files with 22 additions and 4 deletions
|
|
@ -40,9 +40,9 @@ class EmailMessageTestCase(TestCase):
|
|||
|
||||
self.mailbox = Mailbox.objects.create(from_email='from@example.com')
|
||||
|
||||
self.test_account = os.environ['EMAIL_ACCOUNT']
|
||||
self.test_password = os.environ['EMAIL_PASSWORD']
|
||||
self.test_smtp_server = os.environ['EMAIL_SMTP_SERVER']
|
||||
self.test_account = os.environ.get('EMAIL_ACCOUNT')
|
||||
self.test_password = os.environ.get('EMAIL_PASSWORD')
|
||||
self.test_smtp_server = os.environ.get('EMAIL_SMTP_SERVER')
|
||||
self.test_from_email = 'nobody@nowhere.com'
|
||||
|
||||
self.maximum_wait_seconds = 60 * 5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue