Commit 3ca0228c by zhaihuitao

update

parent 749f3cee
# -*- coding: utf-8 -*-
"""
@author:zhaiht
@file: mailUtil.py
@time: 2020/10/29 19:26
@desc:
"""
\ No newline at end of file
...@@ -13,14 +13,11 @@ import unittest ...@@ -13,14 +13,11 @@ import unittest
from config.envcfg import prod_event_url, event_interface, headers from config.envcfg import prod_event_url, event_interface, headers
from config.prod.params import params_install from config.prod.params import params_install
class gettimeTestCase(unittest.TestCase): class gettimeTestCase(unittest.TestCase):
def gettime(self): def gettime(self):
# r = requests.get(url=prod_event_url+'/receive/gettime', headers=headers) r = requests.get('http://log.trackingio.com/receive/gettime')
r = requests.get('http://log.trackingio.com:80/receive/gettime') print(r.status_code)
print(r.text)
print(r.url)
# self.assertEqual(r.status_code, 200, msg="执行失败,请检查")
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