From d9b5a414ca2823bcbb8008c8d19efd8ad16f0c35 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sat, 21 Feb 2009 07:29:21 +0000 Subject: [PATCH] [1.0.X] Fixed #8551 -- Added REMOTE_ADDR to the default Test Client environment. Thanks to schmichael for the report and patch. Merge of r9847 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9848 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/test/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/test/client.py b/django/test/client.py index ecc3a1c881..f4435c090f 100644 --- a/django/test/client.py +++ b/django/test/client.py @@ -189,6 +189,7 @@ class Client(object): 'HTTP_COOKIE': self.cookies, 'PATH_INFO': '/', 'QUERY_STRING': '', + 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': '', 'SERVER_NAME': 'testserver',