#3051: django.test.client.Client() does not set HttpResponse context and template properly ----------------------------------------+----------------------------------- Reporter: anonymous | Owner: adrian Status: reopened | Milestone: Component: Testing framework | Version: SVN Resolution: | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 1 | Needs_tests: 0 Needs_better_patch: 0 | ----------------------------------------+----------------------------------- Changes (by adamtwiss):
* status: closed => reopened * needs_docs: 0 => 1 * resolution: invalid => Comment: I've just come across this same problem, and spent an hour or so scratching my head. .As russellm says it is easy to fix by calling django.test.utils.setup_test_environment() first. However, this is not really mentioned in the documentation at all. The function is mentioned at: http://docs.findjango.com/topics/testing.html But it isn't in anyway clear that you have to call it for certain things to work, and none of the example code calls it. Surely -at the very least, the documentation/examples need to make this clear. -- Ticket URL: <http://code.djangoproject.com/ticket/3051#comment:3> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---