Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#13754 closed (fixed)

Add a note about a test client session property gotcha

Reported by: SmileyChris 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 SmileyChris 5 years ago.

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by SmileyChris

comment:1 Changed 5 years ago by SmileyChris

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:2 Changed 5 years ago by lukeplant

  • Resolution set to fixed
  • Status changed from new to closed

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

Thanks SmileyChris for report and patch.

comment:3 Changed 5 years ago by lukeplant

(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