Ticket #7416: testclient-session.diff

File testclient-session.diff, 589 bytes (added by Eric Holscher, 16 years ago)

Simple patch implementing this.

  • test/client.py

     
    255255
    256256            # Create a fake request to store login details
    257257            request = HttpRequest()
    258             request.session = engine.SessionStore()
     258            if self.session is not None:
     259                request.session = self.session
     260            else:
     261                request.session = engine.SessionStore()
    259262            login(request, user)
    260263
    261264            # Set the cookie to represent the session
Back to Top