Test Django 1.10

Also includes:
* Change AnymailTestMixin.assertDoesNotWarn
  to filter specific warning classes.
* Look specifically for AnymailInsecureWebhookWarning
  in WebhookBasicAuthTestsMixin.test_warns_if_no_auth
  (because we don't care *in that test case* about
  DeprecatedInDjango10 warnings).
This commit is contained in:
medmunds
2016-05-29 17:34:51 -07:00
parent 995617a130
commit 296f6cab50
4 changed files with 12 additions and 19 deletions

View File

@@ -82,7 +82,7 @@ class WebhookBasicAuthTestsMixin(object):
with self.assertWarns(AnymailInsecureWebhookWarning):
response = self.call_webhook()
else:
with self.assertDoesNotWarn():
with self.assertDoesNotWarn(AnymailInsecureWebhookWarning):
response = self.call_webhook()
self.assertEqual(response.status_code, 200)