Add is_testing value to the status endpoint

This commit is contained in:
Joseph Schorr 2014-10-29 13:51:05 -04:00
parent 57810ba36f
commit dfe143270c

View file

@ -160,6 +160,7 @@ def status():
response = jsonify({
'db_healthy': db_healthy,
'buildlogs_healthy': buildlogs_healthy,
'is_testing': app.config['TESTING'],
})
response.status_code = 200 if db_healthy and buildlogs_healthy else 503