Fix the remainder of the API usage tests. Note that this still fails when the blueprint is registered again, so each subset of tests has to be run on its own

This commit is contained in:
Joseph Schorr 2014-03-18 20:32:37 -04:00
parent 5e7ffd95ca
commit 807fa68fe4
3 changed files with 55 additions and 61 deletions

View file

@ -74,7 +74,7 @@ def common_login(db_user):
@app.errorhandler(model.DataModelException)
def handle_dme(ex):
logger.exception(ex)
return make_response(ex.message, 400)
return make_response(json.dumps({'message': ex.message}), 400)
def generate_csrf_token():