mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 11:51:05 -05:00
Drop support for Django 1.3, Python 2.6 and 3.2.
* Shrink the Travis test matrix * Remove a lot of backported test code * Update requirements in setup.py * Update docs Closes #79
This commit is contained in:
@@ -1,26 +1,22 @@
|
||||
from __future__ import unicode_literals
|
||||
import os
|
||||
import unittest
|
||||
|
||||
from django.core import mail
|
||||
from django.test import TestCase
|
||||
from django.test.utils import override_settings
|
||||
|
||||
from djrill import MandrillAPIError
|
||||
from djrill.tests.utils import BackportedAssertions, override_settings
|
||||
|
||||
try:
|
||||
from unittest import skipUnless
|
||||
except ImportError:
|
||||
from django.utils.unittest import skipUnless
|
||||
|
||||
|
||||
MANDRILL_TEST_API_KEY = os.getenv('MANDRILL_TEST_API_KEY')
|
||||
|
||||
|
||||
@skipUnless(MANDRILL_TEST_API_KEY,
|
||||
@unittest.skipUnless(MANDRILL_TEST_API_KEY,
|
||||
"Set MANDRILL_TEST_API_KEY environment variable to run integration tests")
|
||||
@override_settings(MANDRILL_API_KEY=MANDRILL_TEST_API_KEY,
|
||||
EMAIL_BACKEND="djrill.mail.backends.djrill.DjrillBackend")
|
||||
class DjrillIntegrationTests(TestCase, BackportedAssertions):
|
||||
class DjrillIntegrationTests(TestCase):
|
||||
"""Mandrill API integration tests
|
||||
|
||||
These tests run against the **live** Mandrill API, using the
|
||||
|
||||
Reference in New Issue
Block a user