Commit 2f19e05e authored by edz's avatar edz

点击修改密码时获取用户信息

parent 0a2f0b3a
...@@ -166,8 +166,9 @@ class user_request(BaseRequest): ...@@ -166,8 +166,9 @@ class user_request(BaseRequest):
self.params["repeat_password"] = repeat_password self.params["repeat_password"] = repeat_password
return self.api_send(self.data["change_pwdd"]) return self.api_send(self.data["change_pwdd"])
#点击修改密码时获取用户信息
def check_pwd(self):
return self.api_send(self.data["check_pwd"])
if __name__ == '__main__': if __name__ == '__main__':
#个人中心 #个人中心
...@@ -208,9 +209,12 @@ if __name__ == '__main__': ...@@ -208,9 +209,12 @@ if __name__ == '__main__':
#忘记密码-修改密码 #忘记密码-修改密码
print(user_request().change_pwd('7.48.0',1,123456,123456)) print(user_request().change_pwd('7.48.0',1,123456,123456))
#忘记密码-修改密码 #修改密码
print(user_request().change_pwdd('7.48.0',123456,1,123456,123456)) print(user_request().change_pwdd('7.48.0',123456,1,123456,123456))
#修改密码时获取账号信息
print(user_request().check_pwd())
...@@ -237,3 +237,12 @@ change_pwdd: ...@@ -237,3 +237,12 @@ change_pwdd:
repeat_password: ${repeat_password} repeat_password: ${repeat_password}
json: {} json: {}
isLogin: 1 isLogin: 1
#修改密码时获取用户信息
check_pwd:
method: get
url: /api/user/check_pwd
params:
data:
json: {}
isLogin: 1
\ No newline at end of file
...@@ -643,6 +643,8 @@ FOLLOW_DEL = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data", ...@@ -643,6 +643,8 @@ FOLLOW_DEL = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data",
CHANGE_PWD = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data", "change_pwd.yaml") CHANGE_PWD = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data", "change_pwd.yaml")
#修改密码 #修改密码
CHANGE_PWDD = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data", "change_pwdd.yaml") CHANGE_PWDD = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data", "change_pwdd.yaml")
#设置密码时获取用户信息
CHECK_PWD = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data", "check_pwd.yaml")
#主播-推荐袋美购列表展示 #主播-推荐袋美购列表展示
LIVESERVICES_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "janus_live_request.yaml") LIVESERVICES_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "janus_live_request.yaml")
......
import pytest
from ids_list import get_ids
import path_setting
from in_common.base_request import BaseRequest
from all_backend_api.user_request import user_request
class TestCheckPwd:
data = BaseRequest().api_load(path_setting.CHECK_PWD)
check_pwd_case, check_pwd_data = get_ids(data, "check_pwd")
@pytest.mark.parametrize("param",check_pwd_data, ids=check_pwd_case)
def test_check_pwd(self, param):
r = user_request().check_pwd()
if r["error"] == 0:
assert r["error"] == param["assert"]
\ No newline at end of file
check_pwd:
#点击修改密码时获取用户信息
-
case: "点击修改密码时成功获取用户信息"
assert: 0
\ 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