Commit a7ba3814 by zhaihuitao

update

parent 3ca0228c
......@@ -8,18 +8,13 @@
from numpy import long
import os, sys
from common.iniUtil import read_config
import time
base_path = os.getcwd()
sys.path.append(base_path)
# 测试环境
# 生产环境:
path = "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/config/setting/config.ini"
rc = read_config(path)
url = rc.get("env", "click_url")
print(url)
print(base_path)
click_url = 'http://uri6.com/tkio/Er6BFna'
......
......@@ -5,7 +5,6 @@
@time: 2020/8/21 15:38
@desc:
"""
import unittest
import json
import requests
......
......@@ -6,18 +6,14 @@
@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):
def testgettime(self):
r = requests.get('http://log.trackingio.com/receive/gettime')
print(r.status_code)
print(r.text)
if __name__ == "__main__":
unittest.main()
\ No newline at end of file
......@@ -10,6 +10,11 @@ import json
import unittest
from config.envcfg import prod_event_url, event_interface, headers
from config.prod.params import params_install
import sys
import os
curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0]
sys.path.append(rootPath)
class installTestCase(unittest.TestCase):
......
......@@ -7,8 +7,11 @@
"""
import unittest
import os
import os, sys
curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0]
sys.path.append(rootPath)
if __name__ == '__main__':
base_path = os.path.dirname(os.path.abspath(__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