#10899: easier manipulation of sessions by test client
-----------------------------------+------------------------------------
Reporter: tallfred | Owner: deni
Type: New feature | Status: assigned
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Comment (by deni):
There's been some work on some parts of the code that overlap with this
issue.
I'm not really sure anymore as to how to resolve this so it would be nice
if someone with more insight
would take a look.
Also I'm not sure if the patch is the best solution because of the part on
line 415, as Aymeric mentioned.
It is questionable in the sense that it's there to enable *direct session
manipulation* (as outlined in the tests in the pull request)
but the part that checks if the session was modified, and therefore saves
it, is the middleware. The test client
goes through the middleware and there should be a way to modify it to
enable direct session manipulation.
--
Ticket URL: <https://code.djangoproject.com/ticket/10899#comment:31>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.fc527048c370e39beaa0829b9ead3074%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.