Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#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)

13754.diff (792 bytes ) - added by Chris Beaven 14 years ago.

Download all attachments as: .zip

Change History (4)

by Chris Beaven, 14 years ago

Attachment: 13754.diff added

comment:1 by Chris Beaven, 14 years ago

Triage Stage: UnreviewedReady for checkin

comment:2 by Luke Plant, 14 years ago

Resolution: fixed
Status: newclosed

(In [13685]) Fixed #13754 - Add a note about a test client session property gotcha

Thanks SmileyChris for report and patch.

comment:3 by Luke Plant, 14 years ago

(In [13686]) [1.2.X] Fixed #13754 - Add a note about a test client session property gotcha

Thanks SmileyChris for report and patch.

Backport of [13685] from trunk.

Note: See TracTickets for help on using tickets.
Back to Top