Commit cd58c334 by taoke

修改token名字

parent 79155ed6
......@@ -43,6 +43,6 @@ class BmyConfig(BaseConfig):
# 测试环境
test_host = "http://testyun.banmago.com/api"
test_name_password = {"username": "15151500000", "password": "bmy123456"}
Authorization = ''
bmy_token = ''
......@@ -10,5 +10,5 @@ import pytest
def bmy_login():
"""BMY登录获取token"""
res = BMY().bmy_login(BmyConfig.test_name_password)
setattr(BmyConfig,'Authorization',res)
setattr(BmyConfig,'bmy_token',res)
......@@ -27,7 +27,7 @@ class TestLogin():
headers = inData['headers']
"""处理"""
headers['Authorization'] = BmyConfig.Authorization
headers['Authorization'] = BmyConfig.bmy_token
"""请求"""
res = request_main(url, headers, method, req_data)
......
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