mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #26666 -- Added ALLOWED_HOSTS validation when running tests.
Also used ALLOWED_HOSTS to check for external hosts in assertRedirects().
This commit is contained in:
committed by
Tim Graham
parent
00551c3eff
commit
17e661641d
1
tests/cache/tests.py
vendored
1
tests/cache/tests.py
vendored
@@ -1393,6 +1393,7 @@ class DefaultNonExpiringCacheKeyTests(SimpleTestCase):
|
||||
},
|
||||
},
|
||||
USE_I18N=False,
|
||||
ALLOWED_HOSTS=['.example.com'],
|
||||
)
|
||||
class CacheUtils(SimpleTestCase):
|
||||
"""TestCase for django.utils.cache functions."""
|
||||
|
||||
Reference in New Issue
Block a user