fixed session error during automated tests

This commit is contained in:
jamespcole 2015-05-20 17:13:13 +10:00
parent a8e7903f39
commit 5606d4bb12

View File

@ -216,8 +216,8 @@ class RequestHandler(SimpleHTTPRequestHandler):
def __init__(self, req, client_addr, server): def __init__(self, req, client_addr, server):
""" Contructor, call the base constructor and set up session """ """ Contructor, call the base constructor and set up session """
SimpleHTTPRequestHandler.__init__(self, req, client_addr, server)
self._session = None self._session = None
SimpleHTTPRequestHandler.__init__(self, req, client_addr, server)
def _handle_request(self, method): # pylint: disable=too-many-branches def _handle_request(self, method): # pylint: disable=too-many-branches
""" Does some common checks and calls appropriate method. """ """ Does some common checks and calls appropriate method. """
@ -433,8 +433,8 @@ class RequestHandler(SimpleHTTPRequestHandler):
if session is not None: if session is not None:
session.reset_expiry() session.reset_expiry()
return session return session
else:
return None return None
def get_current_session_id(self): def get_current_session_id(self):
""" """