Commit ea2dc125 authored by 林颖's avatar 林颖

医生后台--提交创建单

parent 398ec3ea
......@@ -30,6 +30,16 @@ class web_request(BaseRequest):
self.params["phone"] = phone
return self.api_send(self.ACCOUNT_URL["file_upload"])
# 医生后台-商户管理-医生管理列表--创建医生--提交创建单
def doctor_register_post(self,profession_licences,b_licences,p_licences,personal_pictures,register_phone,verification_code):
self.params["profession_licences"] = profession_licences
self.params["b_licences"] = b_licences
self.params["p_licences"] = p_licences
self.params["personal_pictures"] = personal_pictures
self.params["register_phone"] = register_phone
self.params["verification_code"] = verification_code
return self.api_send(self.ACCOUNT_URL["doctor_register_post"])
# 医生后台-商户管理-医生管理列表--查看审核中的医生
def doctor_register(self,doctorregister_id):
self.params["doctorregister_id"] = doctorregister_id
......
......@@ -261,6 +261,24 @@ doctor_register:
isLogin: 1 #需要登录
#医生后台-商户管理-医生管理列表--创建医生--提交创建单
doctor_register_post:
method: post
url: /api/web/doctor/register
params: {}
data:
profession_licences: ${profession_licences}
b_licences: ${b_licences}
p_licences: ${p_licences}
personal_pictures: ${personal_pictures}
register_phone: ${register_phone}
verification_code: ${verification_code}
json: {}
isLogin: 1 #需要登录
#医生后台-账号密码登录
account_login:
method: post
......
......@@ -172,6 +172,8 @@ DOCTORLIST = os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "d
DOCTOR_VERIIFICATIONCODE = os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "doctor_verificationcode.yaml")
# 医生后台-商户管理-医生管理列表--审核中的医生查看
DOCTOR_REGISTER = os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "doctor_register.yaml")
# 医生后台-商户管理-医生管理列表--创建医生--提交创建单
DOCTOR_REGISTER_POST = os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "doctor_register_post.yaml")
# 医生后台-账号密码登录
DOCTOR_LOGIN = os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "account_login.yaml")
# 医生后台-修改密码--发送验证码
......
import pytest
import path_setting
from all_doctor_api.web_request import web_request
from ids_list import get_ids
from in_common.base_request import BaseRequest
class TestDoctorRegisterPost:
data = BaseRequest().api_load(path_setting.DOCTOR_REGISTER_POST)
doctor_register_post_case, doctor_register_post_data = get_ids(data, "doctor_register_post")
@pytest.mark.parametrize("param",doctor_register_post_data,ids=doctor_register_post_case)
def test_doctor_register(self,param):
r = web_request().doctor_register_post(param["profession_licences"],
param["b_licences"],
param["p_licences"],
param["personal_pictures"],
param["register_phone"],
param["verification_code"])
# if r["error"] == 0:
assert r["data"]['code'] == param["code"]
assert r["data"]['message'] == param["message"]
doctor_register_post:
-
case: "医生后台-商户管理-医生管理列表--创建医生--提交创建单 "
assert: 0
profession_licences: '[]'
b_licences: '["https://heras.igengmei.com/doctor/2021/08/23/9ea8142bf3","https://heras.igengmei.com/doctor/2021/08/23/63aebceaab"]'
p_licences: '["https://heras.igengmei.com/doctor/2021/08/23/d08135f514","https://heras.igengmei.com/doctor/2021/08/23/c1da681094"]'
personal_pictures: '["https://heras.igengmei.com/service/2021/08/23/ba69400864"]'
register_phone: 13984574071
verification_code: 133131
code: 1
message: '验证码错误!'
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