Change common_login to take in a user uuid, instead of a user DB object
This commit is contained in:
parent
7736de24fe
commit
aecec02b6c
7 changed files with 25 additions and 26 deletions
|
@ -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
|
||||
|
|
Reference in a new issue