Commit 28eb7702 by zhaihuitao

add install enevt

parent a84bfaae
......@@ -18,5 +18,6 @@ class installTestCase(unittest.TestCase):
print("激活事件执行结果:" + r.text)
print(r.url)
self.assertEqual(r.status_code, 200, msg="执行失败,请检查")
if __name__ == "__main__":
unittest.main()
......@@ -16,7 +16,8 @@ from config.prod.params import params_startup
class startupTestCase(unittest.TestCase):
def teststartup(self):
r = requests.post(url=prod['events']['url'] + 'startup', data=json.dumps(params_startup), headers=headers, timeout=10)
print(r.text)
print(r.text+"\n"+r.url)
#print(r.url)
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