Skip to content

Commit f89d92b

Browse files
committed
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).
1 parent 75d7671 commit f89d92b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_base_backends.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from django.test import override_settings, SimpleTestCase
1+
from django.test import override_settings, SimpleTestCase, tag
22

33
from anymail.backends.base_requests import AnymailRequestsBackend, RequestsPayload
44
from anymail.message import AnymailMessage, AnymailRecipientStatus
@@ -68,6 +68,7 @@ def test_timeout_setting(self):
6868
self.assertEqual(timeout, 5)
6969

7070

71+
@tag('live')
7172
@override_settings(EMAIL_BACKEND='tests.test_base_backends.MinimalRequestsBackend')
7273
class RequestsBackendLiveTestCase(SimpleTestCase, AnymailTestMixin):
7374
@override_settings(ANYMAIL_DEBUG_API_REQUESTS=True)

0 commit comments

Comments
 (0)