mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
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.
This commit is contained in:
parent
498f38c461
commit
f706cacd27
3 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