Add a note about a test client session property gotcha
|Reported by:||Chris Beaven||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.
Change History (4)
comment:1 Changed 6 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Ready for checkin|