Commit 6b987130 by zhaihuitao

add install enevt

parent c6bd163f
......@@ -15,15 +15,10 @@ headers = {'Content-Type': 'application/json'}
class installTestCase(unittest.TestCase):
def installUpload(self):
try:
def testinstall(self):
p = requests.post(url=prod["events"]["url"] + 'install', data=json.dumps(params_install), headers=headers, timeout=5)
print("开始执行===================")
print("激活:" + p.text)
# print("设备id:" + i)
print("激活时间执行结果:" + p.text)
print(p.url)
except Exception as err:
print(err)
self.assertEqual(p.status_code, 200, msg="执行失败,请检查")
if __name__ == "__main__":
unittest.main()
\ No newline at end of file
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