mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-10 19:43:01 +00:00
fix user construction in add_user test function
ensures same construction is used as the real app
This commit is contained in:
@@ -67,8 +67,7 @@ def add_user(db, app=None, **kwargs):
|
|||||||
setattr(orm_user, attr, value)
|
setattr(orm_user, attr, value)
|
||||||
db.commit()
|
db.commit()
|
||||||
if app:
|
if app:
|
||||||
user = app.users[orm_user.id] = User(orm_user, app.tornado_settings)
|
return app.users[orm_user.id]
|
||||||
return user
|
|
||||||
else:
|
else:
|
||||||
return orm_user
|
return orm_user
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user