#13754 closed (fixed)
Add a note about a test client session property gotcha
Reported by: | Chris Beaven | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I've tripped over this just now, and remember having the issue a while ago too.
A new session object is retrieved every time the client.session
property is called
This means the following code will fail:
self.client.session['somekey'] = something self.client.session.save()
A note in documentation would be useful.
Attachments (1)
Change History (4)
by , 14 years ago
Attachment: | 13754.diff added |
---|
comment:1 by , 14 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 14 years ago
Note:
See TracTickets
for help on using tickets.
(In [13685]) Fixed #13754 - Add a note about a test client session property gotcha
Thanks SmileyChris for report and patch.