Test Client Loses session when login is called
|Reported by:||Owned by:||Eric Holscher|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||no|
If data is put into the session by a view during a test, and then subsequently in the same test the client.login method is used on the test client, the client loses all session data previously in it.
It appears to be due to this line:
I quickly changed that line to:
request.session = self.session# engine.SessionStore()
Which seems more correct, but I haven't run the tests to see if it's right or not.
Change History (7)
comment:1 Changed 9 years ago by
|Owner:||changed from nobody to Eric Holscher|
|Status:||new → assigned|