Commit 5dc2aa37 by 文鑫

增加值注释

parent 87bec304
......@@ -17,6 +17,7 @@ class TestSystem():
#测试删除数据源接口
if story == '删除mysql数据源' or story == '删除oracle数据源':
id = getSourceId.get_SourceId(data)
#将数据源id拼接在url地址上
url = url + id
r = requests.post(url=url)
#测试需要传递dataSourceId的接口
......@@ -26,7 +27,7 @@ class TestSystem():
r = requests.get(url=url)
#测试post接口
elif method == 'post':
json = eval(data)
json = eval(data) #eval返回传入字符串的表达式的结果
r = requests.post(url = url,json = json)
#测试get接口
elif method == 'get':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment