parse_response_object: load response content as json format if possible

This commit is contained in:
httprunner
2017-06-20 20:24:38 +08:00
parent fdc7824de5
commit 5834594d6c
3 changed files with 25 additions and 2 deletions

View File

@@ -19,6 +19,10 @@ data structure:
"""
users_dict = {}
@app.route('/')
def index():
return "Hello World!"
@app.route('/api/users')
def get_users():
users_list = [user for uid, user in users_dict.items()]