Opened 6 years ago

Closed 6 years ago

Last modified 6 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: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 6 years ago.

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by Chris Beaven

Attachment: 13754.diff added

comment:1 Changed 6 years ago by Chris Beaven

Triage Stage: UnreviewedReady for checkin

comment:2 Changed 6 years ago by Luke Plant

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 Changed 6 years ago by Luke Plant

(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