From 17e661641ddaf8266e7430d83cfb2039abc55df7 Mon Sep 17 00:00:00 2001 From: Tobias McNulty Date: Fri, 3 Jun 2016 15:02:38 -0700 Subject: Refs #26666 -- Added ALLOWED_HOSTS validation when running tests. Also used ALLOWED_HOSTS to check for external hosts in assertRedirects(). --- tests/cache/tests.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/cache') diff --git a/tests/cache/tests.py b/tests/cache/tests.py index 9224434dfe..9099402f43 100644 --- a/tests/cache/tests.py +++ b/tests/cache/tests.py @@ -1393,6 +1393,7 @@ class DefaultNonExpiringCacheKeyTests(SimpleTestCase): }, }, USE_I18N=False, + ALLOWED_HOSTS=['.example.com'], ) class CacheUtils(SimpleTestCase): """TestCase for django.utils.cache functions.""" -- cgit v1.3