Change common_login to take in a user uuid, instead of a user DB object

This commit is contained in:
Joseph Schorr 2017-07-20 15:40:14 -04:00
parent 7736de24fe
commit aecec02b6c
7 changed files with 25 additions and 26 deletions

View file

@ -22,4 +22,4 @@ from test.fixtures import *
def test_common_login(username, expect_success, app):
db_user = model.user.get_namespace_user(username)
with app.app_context():
assert common_login(db_user) == expect_success
assert common_login(db_user.uuid) == expect_success