Commit 6b987130 by zhaihuitao

add install enevt

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