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
04f2fe93
Commit
04f2fe93
authored
Jun 11, 2021
by
张慧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
次卡-确认订单页面-修改手机号接口
parent
3d603de3
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
51 additions
and
4 deletions
+51
-4
janus_request.py
all_backend_api/janus_request.py
+9
-1
janus_request.yaml
all_backend_api/janus_request.yaml
+11
-1
host.yaml
host.yaml
+2
-2
path_setting.py
path_setting.py
+2
-0
test_beauty_card_update_phone.py
..._backend_case/janus_case/test_beauty_card_update_phone.py
+19
-0
beauty_card_update_phone.yaml
test_backend_data/janus_data/beauty_card_update_phone.yaml
+8
-0
No files found.
all_backend_api/janus_request.py
View file @
04f2fe93
...
...
@@ -118,6 +118,13 @@ class janus_request(BaseRequest):
self
.
params
[
"bc_coupon_id"
]
=
bc_coupon_id
return
self
.
api_send
(
self
.
data
[
"beauty_card_confirm"
])
#次卡-确认订单页面-修改手机号
def
beauty_card_update_phone
(
self
,
authorize_phone
,
authorize_phone_type
,
vfc_code
):
self
.
params
[
"authorize_phone"
]
=
authorize_phone
self
.
params
[
"authorize_phone_type"
]
=
authorize_phone_type
self
.
params
[
"vfc_code"
]
=
vfc_code
return
self
.
api_send
(
self
.
data
[
"beauty_card_update_phone"
])
# 新版本我的美券列表
def
product_my_list
(
self
,
start_num
,
tab_id
):
self
.
params
[
'start_num'
]
=
start_num
...
...
@@ -145,7 +152,8 @@ if __name__ == '__main__':
#打印次卡-确认订单接口返回
print
(
janus_request
()
.
beauty_card_confirm
(
"10176"
,
1
,
1
,
0
))
#打印次卡-确认订单页面-修改手机号接口返回
print
(
janus_request
()
.
beauty_card_update_phone
(
"+8612348543876"
,
1
,
"084430"
))
print
(
janus_request
()
.
product_my_list
(
0
,
0
))
all_backend_api/janus_request.yaml
View file @
04f2fe93
...
...
@@ -121,7 +121,17 @@ beauty_card_confirm:
json
:
{}
isLogin
:
1
#次卡-确认订单页面-修改手机号
beauty_card_update_phone
:
method
:
post
url
:
/api/janus/beauty_card/update_phone
params
:
{}
data
:
authorize_phone
:
${authorize_phone}
authorize_phone_type
:
${authorize_phone_type}
vfc_code
:
${vfc_code}
json
:
{}
isLogin
:
1
#新版本我的美券
coupon_my_list
:
...
...
host.yaml
View file @
04f2fe93
develop_host
:
#
backend: http://backend.paas-develop.env
doctor
:
http://doctor.paas-develop.env
backend
:
http://backend.paas-develop.env
#
doctor: http://doctor.paas-develop.env
# backend: https://backend.igengmei.com
path_setting.py
View file @
04f2fe93
...
...
@@ -268,6 +268,8 @@ RELATED_SERVICE_DATA = os.path.join(BASE_DIR, "backend_auto/test_backend_data/hy
#次卡-确认订单
BEAUTY_CARD_CONFIRM
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/janus_data"
,
"beauty_card_confirm.yaml"
)
#次卡-确认订单页面-修改手机号接口
BEAUTY_CARD_UPDATE_PHONE
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/janus_data"
,
"beauty_card_update_phone.yaml"
)
#捜索结果页-医生/医院tab
CONTENTV6_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"search_request.yaml"
)
...
...
test_backend_case/janus_case/test_beauty_card_update_phone.py
0 → 100644
View file @
04f2fe93
import
pytest
from
all_backend_api.janus_request
import
janus_request
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
class
TestBeautyCardUpdatePhone
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_UPDATE_PHONE
)
beauty_card_update_phone_case
,
beauty_card_update_phone_data
=
get_ids
(
data
,
"beauty_card_update_phone"
)
@pytest.mark.parametrize
(
"param"
,
beauty_card_update_phone_data
,
ids
=
beauty_card_update_phone_case
)
def
test_beauty_card_update_phone
(
self
,
param
):
r
=
janus_request
()
.
beauty_card_update_phone
(
param
[
"authorize_phone"
],
param
[
"authorize_phone_type"
],
param
[
"vfc_code"
])
if
r
[
"error"
]
==
1
:
assert
r
[
"message"
]
==
param
[
"assert_message"
]
test_backend_data/janus_data/beauty_card_update_phone.yaml
0 → 100644
View file @
04f2fe93
beauty_card_update_phone
:
-
case
:
"
次卡-确认订单页面-修改手机号-校验接口返回成功case"
authorize_phone
:
"
+8612345678912"
authorize_phone_type
:
1
vfc_code
:
"
1234"
assert_message
:
"
验证码校验不通过"
\ No newline at end of file
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