Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
backend_auto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
邓莹莹
backend_auto
Commits
ea2dc125
Commit
ea2dc125
authored
Aug 23, 2021
by
林颖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
医生后台--提交创建单
parent
398ec3ea
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
0 deletions
+67
-0
web_request.py
all_doctor_api/web_request.py
+10
-0
web_request.yaml
all_doctor_api/web_request.yaml
+18
-0
path_setting.py
path_setting.py
+2
-0
test_doctor_register_post.py
test_doctor_case/web_case/test_doctor_register_post.py
+25
-0
doctor_register_post.yaml
test_doctor_data/web_data/doctor_register_post.yaml
+12
-0
No files found.
all_doctor_api/web_request.py
View file @
ea2dc125
...
...
@@ -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
...
...
all_doctor_api/web_request.yaml
View file @
ea2dc125
...
...
@@ -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
...
...
path_setting.py
View file @
ea2dc125
...
...
@@ -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"
)
# 医生后台-修改密码--发送验证码
...
...
test_doctor_case/web_case/test_doctor_register_post.py
0 → 100644
View file @
ea2dc125
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"
]
test_doctor_data/web_data/doctor_register_post.yaml
0 → 100644
View file @
ea2dc125
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
:
'
验证码错误!'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment