Commit 3079b85d by zhaihuitao

add install enevt

parent f4689a47
......@@ -7,14 +7,14 @@
"""
import requests
import json
import unittest
from config.envcfg import prod
from config.prod.params import params_install
headers = {'Content-Type': 'application/json'}
class allEvent:
# 激活
class installTestCase(unittest.TestCase):
def installUpload(self):
try:
p = requests.post(url=prod["events"]["url"] + 'install', data=json.dumps(params_install), headers=headers, timeout=5)
......@@ -24,3 +24,6 @@ class allEvent:
print(p.url)
except Exception as err:
print(err)
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