diff options
| author | Carlton Gibson <carlton.gibson@noumenal.es> | 2025-05-13 12:02:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-13 12:02:30 +0200 |
| commit | f66c79e93d41d2cd32be244170b54080c0796584 (patch) | |
| tree | c71d7e04715a7041e3b448fc9140b32526a5ba82 /tests/admin_scripts | |
| parent | 825ddda26a14847c30522f4d1112fb506123420d (diff) | |
Refs #35591 -- Ensured isolated test environ for runserver warning.
Diffstat (limited to 'tests/admin_scripts')
| -rw-r--r-- | tests/admin_scripts/tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index ebdb637df4..aad05220ed 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -1594,6 +1594,7 @@ class ManageRunserver(SimpleTestCase): call_command(self.cmd, addrport="7000") self.assertServerSettings("127.0.0.1", "7000") + @mock.patch.dict(os.environ, {"DJANGO_RUNSERVER_HIDE_WARNING": "anything-but-true"}) def test_zero_ip_addr(self): self.cmd.addr = "0" self.cmd._raw_ipv6 = False @@ -1612,6 +1613,7 @@ class ManageRunserver(SimpleTestCase): self.output.getvalue(), ) + @mock.patch.dict(os.environ, {"DJANGO_RUNSERVER_HIDE_WARNING": "anything-but-true"}) def test_on_bind(self): self.cmd.addr = "127.0.0.1" self.cmd._raw_ipv6 = False |
