Auth Improvments (#746)

* Create generic get_errors, get_infos; add MLC OAuth settings in config
* Use new get_errors function
This commit is contained in:
Kevin Chung
2018-11-22 18:33:08 -05:00
committed by GitHub
parent a3bc7b3917
commit bf241eb1a5
10 changed files with 115 additions and 30 deletions

View File

@@ -69,7 +69,7 @@ def test_user_can_unlock_hint():
r = client.get('/api/v1/hints/{}'.format(hint_id))
resp = r.get_json()
assert resp['data'].get('content')
assert resp['data'].get('content') == "This is a hint"
user = Users.query.filter_by(name="user1").first()
assert user.score == 5