From ea2499f92fa86d0f2b432abb27d45fd5b2e091bd Mon Sep 17 00:00:00 2001 From: medmunds Date: Sun, 20 Apr 2014 15:03:49 -0700 Subject: [PATCH] Fix possible test-sequencing issue in DjrillMandrillSubaccountTests --- djrill/tests/test_mandrill_subaccounts.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/djrill/tests/test_mandrill_subaccounts.py b/djrill/tests/test_mandrill_subaccounts.py index 00de13f..015f069 100644 --- a/djrill/tests/test_mandrill_subaccounts.py +++ b/djrill/tests/test_mandrill_subaccounts.py @@ -8,6 +8,12 @@ class DjrillMandrillSubaccountTests(DjrillBackendMockAPITestCase): """Test Djrill backend support for Mandrill subaccounts""" def test_send_basic(self): + # Make sure we don't have a MANDRILL_SUBACCOUNT from a previous test + try: + del settings.MANDRILL_SUBACCOUNT + except AttributeError: + pass + mail.send_mail('Subject here', 'Here is the message.', 'from@example.com', ['to@example.com'], fail_silently=False) self.assert_mandrill_called("/messages/send.json")