Update tests to use uuid in session

This commit is contained in:
Jimmy Zelinskie 2014-11-12 17:02:46 -05:00 committed by Jimmy Zelinskie
parent 9d677b8eb3
commit faeb3b9a10

View file

@ -79,7 +79,7 @@ class ApiTestCase(unittest.TestCase):
with client.session_transaction() as sess:
if auth_username:
loaded = model.get_user(auth_username)
sess['user_id'] = loaded.id
sess['user_id'] = loaded.uuid
sess['login_time'] = datetime.datetime.now()
sess[CSRF_TOKEN_KEY] = CSRF_TOKEN