1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #36266 -- Renamed HIDE_PRODUCTION_WARNING environment variable to DJANGO_RUNSERVER_HIDE_WARNING.

This commit is contained in:
Johanan Oppong Amoateng
2025-03-20 10:22:07 +00:00
committed by Sarah Boyce
parent e295033144
commit 5adadf6e8c
4 changed files with 5 additions and 4 deletions

View File

@@ -1630,7 +1630,7 @@ class ManageRunserver(SimpleTestCase):
self.output.getvalue(),
)
@mock.patch.dict(os.environ, {"HIDE_PRODUCTION_WARNING": "true"})
@mock.patch.dict(os.environ, {"DJANGO_RUNSERVER_HIDE_WARNING": "true"})
def test_hide_production_warning_with_environment_variable(self):
self.cmd.addr = "0"
self.cmd._raw_ipv6 = False