Fix webhook tests for Django 1.11-alpha

Django 1.11 appears to enforce ALLOWED_HOSTS
(more strictly) during tests.
This commit is contained in:
medmunds
2017-01-19 19:22:16 -08:00
parent 0ba5d1d4ad
commit bff01b440a
2 changed files with 7 additions and 4 deletions

View File

@@ -149,6 +149,7 @@ class UpdateDeepTests(SimpleTestCase):
self.assertEqual(first, {'a': {'a1': 1, 'a2': 2}, 'c': {'c1': 1}})
@override_settings(ALLOWED_HOSTS=[".example.com"])
class RequestUtilsTests(SimpleTestCase):
"""Test utils.get_request_* helpers"""