reply with full user model in auth handlers

This commit is contained in:
Min RK
2015-03-23 16:29:30 -07:00
parent c467c64e01
commit 80997c8297
2 changed files with 3 additions and 7 deletions

View File

@@ -81,7 +81,7 @@ def test_auth_api(app):
r = api_request(app, 'authorizations/token', api_token)
assert r.status_code == 200
reply = r.json()
assert reply['user'] == user.name
assert reply['name'] == user.name
# check fail
r = api_request(app, 'authorizations/token', api_token,