Commit 411fb4eb by linguangwei

区分测试结果来发送钉钉

parent 335668d8
...@@ -41,11 +41,11 @@ def alert(): ...@@ -41,11 +41,11 @@ def alert():
headers = { headers = {
'content-type': "application/json" 'content-type': "application/json"
} }
if result['skipped'] + result['passed'] != result['total']:
response = requests.request("POST", url, data=json_str, headers=headers, params=querystring)
response = requests.request("POST", url, data=json_str, headers=headers, params=querystring) print(response)
print(response.text)
print(response)
print(response.text)
if __name__ == '__main__': if __name__ == '__main__':
......
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