mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Tests: avoid pummeling httpbin.org
Tag RequestsBackendLiveTestCase as 'live' so it only runs in a couple of Travis builds (rather than all 20+ of them).
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from django.test import override_settings, SimpleTestCase
|
||||
from django.test import override_settings, SimpleTestCase, tag
|
||||
|
||||
from anymail.backends.base_requests import AnymailRequestsBackend, RequestsPayload
|
||||
from anymail.message import AnymailMessage, AnymailRecipientStatus
|
||||
@@ -68,6 +68,7 @@ class RequestsBackendBaseTestCase(RequestsBackendMockAPITestCase):
|
||||
self.assertEqual(timeout, 5)
|
||||
|
||||
|
||||
@tag('live')
|
||||
@override_settings(EMAIL_BACKEND='tests.test_base_backends.MinimalRequestsBackend')
|
||||
class RequestsBackendLiveTestCase(SimpleTestCase, AnymailTestMixin):
|
||||
@override_settings(ANYMAIL_DEBUG_API_REQUESTS=True)
|
||||
|
||||
Reference in New Issue
Block a user