Commit 22f02923 authored by “xbozhong's avatar “xbozhong

测试1

parent b443bed8
import os.path
from configparser import ConfigParser
from Common.handle_path import conf_dir
......@@ -18,10 +19,12 @@ class HandleConfig(ConfigParser):
fp.close()
file_path = conf_dir + "\\config.ini"
file_path = os.path.join(conf_dir, 'config.ini')
conf = HandleConfig(file_path)
if __name__ == '__main__':
name = conf.get("userInfo", "mobile_phone")
print(name)
# conf.write_data("18178945612")
print(file_path)
import os.path
import pytest
from Common.handle_excel import HandleExcel
......@@ -27,7 +28,7 @@ def get_newPhone():
class TestTalentedPerson:
# 第一步,读取excel中的数据
exc = HandleExcel(datas_dir + "\\接口业务流.xlsx", "优才")
exc = HandleExcel(os.path.join(datas_dir, "接口业务流.xlsx"), "优才")
cases = exc.read_all_datas()
# 关闭excel
exc.close_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