mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +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:
parent
00551c3eff
commit
17e661641d
11 changed files with 105 additions and 12 deletions
|
@ -35,9 +35,9 @@ class LiveServerBase(StaticLiveServerTestCase):
|
|||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
super(LiveServerBase, cls).tearDownClass()
|
||||
# Restore original settings
|
||||
cls.settings_override.disable()
|
||||
super(LiveServerBase, cls).tearDownClass()
|
||||
|
||||
|
||||
class StaticLiveServerChecks(LiveServerBase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue