Commit 369b0e02 by zhaihuitao

add install enevt

No related merge requests found
......@@ -8,17 +8,15 @@
import requests
import json
import unittest
from config.envcfg import prod,headers
from config.envcfg import prod, headers
from config.prod.params import params_install
#headers = {'Content-Type': 'application/json'}
class installTestCase(unittest.TestCase):
def testinstall(self):
p = requests.post(url=prod["events"]["url"] + 'install', data=json.dumps(params_install), headers=headers, timeout=5)
print("激活事件执行结果:" + p.text)
print(p.url)
self.assertEqual(p.status_code, 200, msg="执行失败,请检查")
r = requests.post(url=prod["events"]["url"] + 'install', data=json.dumps(params_install), headers=headers)
print("激活事件执行结果:" + r.text)
print(r.url)
self.assertEqual(r.status_code, 200, msg="执行失败,请检查")
if __name__ == "__main__":
unittest.main()
\ No newline at end of file
unittest.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