#16106: Test client session not set for unauthenticated requests -------------------------------------+------------------------------------- Reporter: | Owner: nobody humanfromearth | Status: new Type: Bug | Component: Testing framework Milestone: | Severity: Normal Version: 1.3 | Keywords: testclient Resolution: | Has patch: 0 Triage Stage: | Needs tests: 0 Unreviewed | Easy pickings: 0 Needs documentation: 0 | Patch needs improvement: 0 | -------------------------------------+------------------------------------- Changes (by humanfromearth):
* needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 Comment: I found a workaround for this bug. Just access a view that sets the session for you. For example: {{{ self.client.get('/admin/') session = self.client.session session['some_var'] = 'value' session.save() ... do stuff }}} -- Ticket URL: <https://code.djangoproject.com/ticket/16106#comment:1> Django <https://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.