Commit 8e0918ec by zhaihuitao

update

parent 14730d87
# -*- coding: utf-8 -*-
"""
@author:zhaiht
@file: test_gettime.py
@time: 2020/10/29 16:40
@desc:
"""
import requests
import json
import unittest
from config.envcfg import prod_event_url, event_interface, headers
from config.prod.params import params_install
class gettimeTestCase(unittest.TestCase):
def gettime(self):
# r = requests.get(url=prod_event_url+'/receive/gettime', headers=headers)
r = requests.get('http://log.trackingio.com:80/receive/gettime')
print(r.text)
print(r.url)
# self.assertEqual(r.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