1. Mikhail Korobov
  2. django-webtest


ishalyapin  committed 1019743

In production environment we always have REMOTE_ADDR and we need it in test env for some apps.

  • Participants
  • Parent commits 32a1919
  • Branches default

Comments (0)

Files changed (1)

File django_webtest/__init__.py

View file
     def do_request(self, req, status, expect_errors):
         # Curry a data dictionary into an instance of the template renderer
         # callback function.
+        req.environ.setdefault('REMOTE_ADDR', '')
         data = {}
         on_template_render = curry(store_rendered_templates, data)