mirror of https://gitee.com/a529548204/apitest.git
14 lines
475 B
Python
14 lines
475 B
Python
# coding:utf-8
|
|
from test_suite.testcase.demo import *
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
def setup_Login():
|
|
logging.info("前置请求登录")
|
|
paramData = readRedisData("login")["case"]
|
|
logging.info("{}".format(paramData[0]["info"]))
|
|
apisend(host=paramData[0]["host"], address=paramData[0]["address"],
|
|
method=paramData[0]["method"],
|
|
headers=paramData[0]["headers"],
|
|
data=paramData[0]["data"], caches=paramData[0]["cache"])
|