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
2e83a3f6
Commit
2e83a3f6
authored
Jun 11, 2021
by
陈雪
Browse files
Options
Browse Files
Download
Plain Diff
chongtu
parents
690801fd
fb89a48b
Show whitespace changes
Inline
Side-by-side
Showing
137 changed files
with
2507 additions
and
21 deletions
+2507
-21
.DS_Store
.DS_Store
+0
-0
.gitignore
.gitignore
+4
-0
diary_album.yaml
all_backend_api/diary_album.yaml
+8
-0
diary_album_request.py
all_backend_api/diary_album_request.py
+11
-0
diary_cancelfavor.yaml
all_backend_api/diary_cancelfavor.yaml
+18
-0
diary_cancelfavor_request.py
all_backend_api/diary_cancelfavor_request.py
+16
-0
diary_common_reply.yaml
all_backend_api/diary_common_reply.yaml
+11
-0
diary_common_reply_request.py
all_backend_api/diary_common_reply_request.py
+14
-0
diary_data_request.py
all_backend_api/diary_data_request.py
+1
-1
diary_isfavor.yaml
all_backend_api/diary_isfavor.yaml
+18
-0
diary_isfavor_request.py
all_backend_api/diary_isfavor_request.py
+17
-0
diary_operation.yaml
all_backend_api/diary_operation.yaml
+25
-0
diary_operation_request.py
all_backend_api/diary_operation_request.py
+38
-0
diary_service.yaml
all_backend_api/diary_service.yaml
+8
-0
diary_service_request.py
all_backend_api/diary_service_request.py
+21
-0
diary_update.yaml
all_backend_api/diary_update.yaml
+9
-0
diary_update_request.py
all_backend_api/diary_update_request.py
+16
-0
diary_vote.yaml
all_backend_api/diary_vote.yaml
+31
-0
diary_vote_request.py
all_backend_api/diary_vote_request.py
+35
-0
face_request.py
all_backend_api/face_request.py
+20
-0
face_request.yaml
all_backend_api/face_request.yaml
+6
-0
gmai_request.py
all_backend_api/gmai_request.py
+6
-2
gmai_request.yaml
all_backend_api/gmai_request.yaml
+8
-0
hybrid_promotion_request.py
all_backend_api/hybrid_promotion_request.py
+21
-0
hybrid_promotion_request.yaml
all_backend_api/hybrid_promotion_request.yaml
+10
-0
hybrid_request.py
all_backend_api/hybrid_request.py
+52
-0
hybrid_request.yaml
all_backend_api/hybrid_request.yaml
+41
-0
janus_request.py
all_backend_api/janus_request.py
+27
-0
janus_request.yaml
all_backend_api/janus_request.yaml
+32
-0
orders_request.py
all_backend_api/orders_request.py
+22
-0
orders_request.yaml
all_backend_api/orders_request.yaml
+8
-0
pay_request.py
all_backend_api/pay_request.py
+27
-0
pay_request.yaml
all_backend_api/pay_request.yaml
+32
-0
personal_recommends.yaml
all_backend_api/personal_recommends.yaml
+24
-0
personal_recommends_request.py
all_backend_api/personal_recommends_request.py
+16
-0
settlement_request.py
all_backend_api/settlement_request.py
+54
-0
settlement_request.yaml
all_backend_api/settlement_request.yaml
+78
-0
tractate_detail.yaml
all_backend_api/tractate_detail.yaml
+25
-0
tractate_detail_request.py
all_backend_api/tractate_detail_request.py
+16
-0
visual_beauty_card.py
all_backend_api/visual_beauty_card.py
+40
-0
visual_beauty_card.yaml
all_backend_api/visual_beauty_card.yaml
+47
-0
host.yaml
host.yaml
+2
-1
base_request.py
in_common/base_request.py
+12
-0
login_session_function.py
login_session_function.py
+2
-1
login_session_function.yaml
login_session_function.yaml
+10
-0
path_setting.py
path_setting.py
+110
-4
run.py
run.py
+0
-1
.DS_Store
test_backend_case/.DS_Store
+0
-0
test_diary_data.py
test_backend_case/account_case/test_diary_data.py
+21
-7
test_thirdPhone_login.py
test_backend_case/account_case/test_thirdPhone_login.py
+2
-1
__init__.py
test_backend_case/diary_case/__init__.py
+0
-0
test_diary_albun.py
test_backend_case/diary_case/test_diary_albun.py
+25
-0
test_diary_cancel.py
test_backend_case/diary_case/test_diary_cancel.py
+26
-0
test_diary_common_reply.py
test_backend_case/diary_case/test_diary_common_reply.py
+34
-0
test_diary_isfavor.py
test_backend_case/diary_case/test_diary_isfavor.py
+32
-0
test_diary_operation.py
test_backend_case/diary_case/test_diary_operation.py
+25
-0
test_diary_service.py
test_backend_case/diary_case/test_diary_service.py
+43
-0
test_diary_update.py
test_backend_case/diary_case/test_diary_update.py
+32
-0
test_diary_vote.py
test_backend_case/diary_case/test_diary_vote.py
+57
-0
__init__.py
test_backend_case/face_case/__init__.py
+0
-0
test_diary_cards.py
test_backend_case/face_case/test_diary_cards.py
+28
-0
test_plastic_cheek_style_classify.py
...ckend_case/gmai_case/test_plastic_cheek_style_classify.py
+18
-0
__init__.py
test_backend_case/hybrid_case/__init__.py
+0
-0
test_basewiki_item.py
test_backend_case/hybrid_case/test_basewiki_item.py
+20
-0
test_basewiki_product.py
test_backend_case/hybrid_case/test_basewiki_product.py
+20
-0
test_brand.py
test_backend_case/hybrid_case/test_brand.py
+20
-0
test_sub_wiki.py
test_backend_case/hybrid_case/test_sub_wiki.py
+20
-0
__init__.py
test_backend_case/hybrid_promotion_case/__init__.py
+0
-0
test_related_service_data.py
...d_case/hybrid_promotion_case/test_related_service_data.py
+19
-0
test_beauty_card_confirm.py
test_backend_case/janus_case/test_beauty_card_confirm.py
+19
-0
test_product_coupon_my_list.py
test_backend_case/janus_case/test_product_coupon_my_list.py
+19
-0
test_product_my_list.py
test_backend_case/janus_case/test_product_my_list.py
+23
-0
__init__.py
test_backend_case/orders_case/__init__.py
+0
-0
test_orders_my_v2_waituse.py
test_backend_case/orders_case/test_orders_my_v2_waituse.py
+47
-0
__init__.py
test_backend_case/pay_case/__init__.py
+0
-0
test_alipay_prepay.py
test_backend_case/pay_case/test_alipay_prepay.py
+22
-0
test_jump.py
test_backend_case/pay_case/test_jump.py
+22
-0
test_wechat_prepay.py
test_backend_case/pay_case/test_wechat_prepay.py
+22
-0
__init__.py
test_backend_case/personal_case/__init__.py
+0
-0
test_personal_recommends.py
test_backend_case/personal_case/test_personal_recommends.py
+20
-0
__init__.py
test_backend_case/settlement_case/__init__.py
+0
-0
test_create_v1.py
test_backend_case/settlement_case/test_create_v1.py
+21
-0
test_pay.py
test_backend_case/settlement_case/test_pay.py
+19
-0
test_pay_v1.py
test_backend_case/settlement_case/test_pay_v1.py
+18
-0
test_preview_v1.py
test_backend_case/settlement_case/test_preview_v1.py
+18
-0
test_settlement_delete.py
test_backend_case/settlement_case/test_settlement_delete.py
+33
-0
test_settlement_detail.py
test_backend_case/settlement_case/test_settlement_detail.py
+20
-0
__init__.py
test_backend_case/tractate_case/__init__.py
+0
-0
test_tractate_detail.py
test_backend_case/tractate_case/test_tractate_detail.py
+42
-0
__init__.py
test_backend_case/visual_beauty_card_case/__init__.py
+0
-0
test_beautycard_filters.py
...d_case/visual_beauty_card_case/test_beautycard_filters.py
+22
-0
test_beautycard_skus.py
...kend_case/visual_beauty_card_case/test_beautycard_skus.py
+20
-0
test_visual_beauty_card_services.py
...sual_beauty_card_case/test_visual_beauty_card_services.py
+20
-0
login_thirdphone.yaml
test_backend_data/account_data/login_thirdphone.yaml
+6
-3
__init__.py
test_backend_data/diary/__init__.py
+0
-0
diary_album.yaml
test_backend_data/diary/diary_album.yaml
+14
-0
diary_cancelfavor.yaml
test_backend_data/diary/diary_cancelfavor.yaml
+14
-0
diary_common_reply.yaml
test_backend_data/diary/diary_common_reply.yaml
+32
-0
diary_isfavor.yaml
test_backend_data/diary/diary_isfavor.yaml
+14
-0
diary_operation.yaml
test_backend_data/diary/diary_operation.yaml
+30
-0
diary_service.yaml
test_backend_data/diary/diary_service.yaml
+16
-0
diary_update.yaml
test_backend_data/diary/diary_update.yaml
+21
-0
diary_vote.yaml
test_backend_data/diary/diary_vote.yaml
+40
-0
__init__.py
test_backend_data/face_data/__init__.py
+0
-0
diary_cards.yaml
test_backend_data/face_data/diary_cards.yaml
+6
-0
plastic_cheek_style_classify.yaml
..._backend_data/gmai_data/plastic_cheek_style_classify.yaml
+6
-0
__init__.py
test_backend_data/hybrid_data/__init__.py
+0
-0
basewiki_item.yaml
test_backend_data/hybrid_data/basewiki_item.yaml
+7
-0
basewiki_product.yaml
test_backend_data/hybrid_data/basewiki_product.yaml
+7
-0
brand.yaml
test_backend_data/hybrid_data/brand.yaml
+7
-0
sub_wiki.yaml
test_backend_data/hybrid_data/sub_wiki.yaml
+8
-0
__init__.py
test_backend_data/hybrid_promotion_data/__init__.py
+0
-0
related_service_data.yaml
...kend_data/hybrid_promotion_data/related_service_data.yaml
+7
-0
beauty_card_confirm.yaml
test_backend_data/janus_data/beauty_card_confirm.yaml
+8
-0
product_coupon_my_list.yaml
test_backend_data/janus_data/product_coupon_my_list.yaml
+7
-0
product_my_list.yaml
test_backend_data/janus_data/product_my_list.yaml
+16
-0
__init__.py
test_backend_data/orders_data/__init__.py
+0
-0
my_v2.yaml
test_backend_data/orders_data/my_v2.yaml
+16
-0
__init__.py
test_backend_data/pay_data/__init__.py
+0
-0
alipay_prepay.yaml
test_backend_data/pay_data/alipay_prepay.yaml
+15
-0
jump.yaml
test_backend_data/pay_data/jump.yaml
+13
-0
wechat_prepay.yaml
test_backend_data/pay_data/wechat_prepay.yaml
+12
-0
__init__.py
test_backend_data/personal_data/__init__.py
+0
-0
personal_recommends.yaml
test_backend_data/personal_data/personal_recommends.yaml
+34
-0
__init__.py
test_backend_data/settlement_data/__init__.py
+0
-0
create_v1.yaml
test_backend_data/settlement_data/create_v1.yaml
+12
-0
pay.yaml
test_backend_data/settlement_data/pay.yaml
+13
-0
pay_v1.yaml
test_backend_data/settlement_data/pay_v1.yaml
+8
-0
preview_v1.yaml
test_backend_data/settlement_data/preview_v1.yaml
+12
-0
settlement_delete.yaml
test_backend_data/settlement_data/settlement_delete.yaml
+9
-0
settlement_detail.yaml
test_backend_data/settlement_data/settlement_detail.yaml
+10
-0
__init__.py
test_backend_data/tractate_data/__init__.py
+0
-0
tractate_detail.yaml
test_backend_data/tractate_data/tractate_detail.yaml
+21
-0
__init__.py
test_backend_data/visual_beauty_card_data/__init__.py
+0
-0
beautycard_filters.yaml
...kend_data/visual_beauty_card_data/beautycard_filters.yaml
+17
-0
beautycard_skus.yaml
...backend_data/visual_beauty_card_data/beautycard_skus.yaml
+110
-0
visual_beauty_card_services.yaml
.../visual_beauty_card_data/visual_beauty_card_services.yaml
+21
-0
No files found.
.DS_Store
View file @
2e83a3f6
No preview for this file type
.gitignore
View file @
2e83a3f6
...
@@ -103,3 +103,6 @@ venv.bak/
...
@@ -103,3 +103,6 @@ venv.bak/
# mypy
# mypy
.mypy_cache/
.mypy_cache/
host.yaml
*/.DS_Store
\ No newline at end of file
all_backend_api/diary_album.yaml
0 → 100644
View file @
2e83a3f6
#查看日记本相册页面
album
:
method
:
get
url
:
/hybrid/diary/album/17586198/_data
params
:
data
:
{}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
all_backend_api/diary_album_request.py
0 → 100644
View file @
2e83a3f6
import
path_setting
from
in_common.base_request
import
BaseRequest
class
diary_album_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
DIARY_ALBUM_CONFIG
)
def
diary_album
(
self
):
return
self
.
api_send
(
self
.
data
[
"album"
])
all_backend_api/diary_cancelfavor.yaml
0 → 100644
View file @
2e83a3f6
#日记本收藏
cancelfavor
:
method
:
delete
url
:
/api/diary/favor/17586195
params
:
data
:
{}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
#cancelfavor:
# method: delte
# url: /api/diary/favor/17586195
# params:
# data: {}
# json: {}
# isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
all_backend_api/diary_cancelfavor_request.py
0 → 100644
View file @
2e83a3f6
import
path_setting
from
in_common.base_request
import
BaseRequest
class
diary_cancelfavor_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
DIARY_CANCELFAVOR_CONFIG
)
def
diary_cancelfavor
(
self
):
return
self
.
api_send
(
self
.
data
[
"cancelfavor"
])
#
all_backend_api/diary_common_reply.yaml
0 → 100644
View file @
2e83a3f6
#日记本列表--日记贴点赞
vote
:
method
:
get
url
:
/api/common/reply
params
:
id
:
${id}
type
:
${type}
data
:
{}
json
:
{}
isLogin
:
0
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
all_backend_api/diary_common_reply_request.py
0 → 100644
View file @
2e83a3f6
import
path_setting
from
in_common.base_request
import
BaseRequest
class
diary_common_reply_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
DIARY_COMMON_REPLY_CONFIG
)
def
diary_common_reply
(
self
,
id
,
type
):
self
.
params
[
"id"
]
=
id
self
.
params
[
"type"
]
=
type
return
self
.
api_send
(
self
.
data
[
"vote"
])
all_backend_api/diary_data_request.py
View file @
2e83a3f6
...
@@ -2,7 +2,7 @@ import path_setting
...
@@ -2,7 +2,7 @@ import path_setting
from
in_common.base_request
import
BaseRequest
from
in_common.base_request
import
BaseRequest
class
diary_data_reqest
(
BaseRequest
):
class
diary_data_req
u
est
(
BaseRequest
):
def
__init__
(
self
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
DIARY_DATA_CONFIG
)
self
.
data
=
self
.
api_load
(
path_setting
.
DIARY_DATA_CONFIG
)
...
...
all_backend_api/diary_isfavor.yaml
0 → 100644
View file @
2e83a3f6
#日记本收藏
isfavor
:
method
:
post
url
:
/api/diary/favor/17586195
params
:
data
:
{}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#cancelfavor:
# method: delte
# url: /api/diary/favor/17586195
# params:
# data: {}
# json: {}
# isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
all_backend_api/diary_isfavor_request.py
0 → 100644
View file @
2e83a3f6
import
path_setting
from
in_common.base_request
import
BaseRequest
class
diary_isfavor_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
DIARY_ISFAVOR_CONFIG
)
def
diary_isfavor
(
self
):
return
self
.
api_send
(
self
.
data
[
"isfavor"
])
all_backend_api/diary_operation.yaml
0 → 100644
View file @
2e83a3f6
#日记本修改信息
operation
:
method
:
post
url
:
/api/diary/additional_info/v2
params
:
data
:
diary_id
:
${diary_id}
title
:
${title}
operation_timestamp
:
${operation_timestamp}
doctor_name
:
${doctor_name}
hospital_name
:
${hospital_name}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#查看日记修改信息页面
additional_info
:
method
:
get
url
:
/api/diary/operation/17586198/
params
:
data
:
{}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
all_backend_api/diary_operation_request.py
0 → 100644
View file @
2e83a3f6
import
path_setting
from
in_common.base_request
import
BaseRequest
class
diary_operation_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
DIARY_OPERATION_CONFIG
)
def
diary_operation
(
self
,
diary_id
,
title
,
operation_timestamp
,
doctor_name
,
hospital_name
):
self
.
params
[
"diary_id"
]
=
diary_id
self
.
params
[
"title"
]
=
title
self
.
params
[
"operation_timestamp"
]
=
operation_timestamp
self
.
params
[
"doctor_name"
]
=
doctor_name
self
.
params
[
"hospital_name"
]
=
hospital_name
return
self
.
api_send
(
self
.
data
[
"operation"
])
def
diary_additional_info
(
self
):
return
self
.
api_send
(
self
.
data
[
"operation"
])
# def __init__(self):
# self.data = self.api_load(path_setting.DIARY_OPERATION_RESULT_CONFIG)
#
# def diary_additional_info(self):
# return self.api_send(self.data["diary_additional_info"])
# if __name__ == '__main__':
# print(conversation_request().message_read("beijing", 1,'[10622,10626,10646,10651]'))
all_backend_api/diary_service.yaml
0 → 100644
View file @
2e83a3f6
diary_data
:
method
:
get
url
:
/api/diary/services
params
:
diary_id
:
${diary_id}
service_id
:
${service_id}
data
:
json
:
{}
all_backend_api/diary_service_request.py
0 → 100644
View file @
2e83a3f6
import
path_setting
from
in_common.base_request
import
BaseRequest
class
diary_service_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
DIARY_SERVICE_CONFIG
)
def
diary_service
(
self
,
diary_id
,
service_id
):
self
.
params
[
"diary_id"
]
=
diary_id
self
.
params
[
"service_id"
]
=
service_id
return
self
.
api_send
(
self
.
data
[
"diary_service"
])
# if __name__ == '__main__':
# print(send_reqest().login_vfc("beijing", "+8612345678912", 1234, "", ""))
# print(send_reqest().diary_data("beijing", "my_diary", 0, 8, 2))
# print(1)
\ No newline at end of file
all_backend_api/diary_update.yaml
0 → 100644
View file @
2e83a3f6
#更新日记本的修改信息
update
:
method
:
post
url
:
/api/diary/update_v2/17586198
params
:
data
:
topic_list
:
${topic_list}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
all_backend_api/diary_update_request.py
0 → 100644
View file @
2e83a3f6
import
path_setting
from
in_common.base_request
import
BaseRequest
class
diary_update_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
DIARY_UPDATE_CONFIG
)
def
diary_update
(
self
,
topic_list
):
self
.
params
[
"topic_list"
]
=
topic_list
return
self
.
api_send
(
self
.
data
[
"update"
])
all_backend_api/diary_vote.yaml
0 → 100644
View file @
2e83a3f6
#日记本列表--日记贴点赞
vote
:
method
:
post
url
:
/hybrid/api/topic/vote/_data
params
:
data
:
id
:
${id}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
canclevote
:
method
:
post
url
:
/hybrid/api/topic/cancel_vote/_data
params
:
data
:
id
:
${id}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
detail
:
method
:
get
url
:
/api/topic/v1
params
:
topic_id
:
${topic_id}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
all_backend_api/diary_vote_request.py
0 → 100644
View file @
2e83a3f6
import
path_setting
from
in_common.base_request
import
BaseRequest
class
diary_vote_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
DIARY_VOTE_CONFIG
)
def
diary_vote
(
self
,
id
):
self
.
params
[
"id"
]
=
id
return
self
.
api_send
(
self
.
data
[
"vote"
])
def
diary_canclevote
(
self
,
id
):
self
.
params
[
"id"
]
=
id
return
self
.
api_send
(
self
.
data
[
"canclevote"
])
# 进入日记贴详情页-用来判断这篇日记贴点赞过没
def
diary_detail
(
self
,
topic_id
):
self
.
params
[
"topic_id"
]
=
topic_id
return
self
.
api_send
(
self
.
data
[
"detail"
])
# def diary_test(self):
# return self.api_send(self.data["detail"])
# if __name__ == '__main__':
# r = diary_vote_request.diary_detail(21249959)
# print(r)
all_backend_api/face_request.py
0 → 100644
View file @
2e83a3f6
import
path_setting
from
in_common.base_request
import
BaseRequest
class
face_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
FACE_DIARY_CARDS_CONFIG
)
# 根据多个标签推荐日记
def
diarys_cards
(
self
,
facial_type2tag_names
):
self
.
params
[
"facial_type2tag_names"
]
=
facial_type2tag_names
return
self
.
api_send
(
self
.
data
[
"face_diarys"
])
if
__name__
==
'__main__'
:
facial_type2tag_names
=
'{"2":["玻尿酸垫下巴","自体脂肪垫下巴"],"3":["半永久纹眉","植眉"]}'
print
(
face_request
()
.
diarys_cards
(
facial_type2tag_names
))
all_backend_api/face_request.yaml
0 → 100644
View file @
2e83a3f6
face_diarys
:
method
:
get
url
:
/api/face/diary/cards
params
:
facial_type2tag_names
:
${facial_type2tag_names}
\ No newline at end of file
all_backend_api/gmai_request.py
View file @
2e83a3f6
...
@@ -52,14 +52,18 @@ class gmai_request(BaseRequest):
...
@@ -52,14 +52,18 @@ class gmai_request(BaseRequest):
self
.
params
[
"cheek_style_classify_id"
]
=
cheek_style_classify_id
self
.
params
[
"cheek_style_classify_id"
]
=
cheek_style_classify_id
return
self
.
api_send
(
self
.
data
[
"plastic_analystic_v2"
])
return
self
.
api_send
(
self
.
data
[
"plastic_analystic_v2"
])
# 获取3D变脸风格参数
def
plastic_cheek_style_classify
(
self
,
version
):
self
.
params
[
"version"
]
=
version
return
self
.
api_send
(
self
.
data
[
"plastic_cheek_style_classify"
])
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
print
(
gmai_request
()
.
plastic_cheek_style_classify
(
"7.44.0"
))
# landmark = '[{"x":168.96603,"y":496.76886},{"x":168.35735,"y":527.7101},{"x":169.548,"y":558.3961},{"x":171.72018,"y":588.8369},{"x":174.93307,"y":619.26794},{"x":179.31195,"y":649.03467},{"x":184.17123,"y":678.6978},{"x":191.05627,"y":707.8003},{"x":200.86497,"y":735.76196},{"x":214.62796,"y":761.79736},{"x":231.40042,"y":785.7622},{"x":250.59685,"y":807.22406},{"x":272.07196,"y":826.8049},{"x":295.4251,"y":843.86194},{"x":321.47278,"y":856.83124},{"x":349.9967,"y":864.5885},{"x":379.85767,"y":866.998},{"x":409.25287,"y":865.863},{"x":437.7829,"y":859.18054},{"x":463.35132,"y":846.88574},{"x":486.354,"y":830.38916},{"x":507.7304,"y":811.95135},{"x":527.778,"y":791.59247},{"x":545.7143,"y":769.32104},{"x":561.4353,"y":745.4949},{"x":573.70917,"y":719.9794},{"x":583.3716,"y":690.47156},{"x":591.3898,"y":660.6565},{"x":598.52515,"y":631.38513},{"x":604.5137,"y":601.75684},{"x":609.14844,"y":572.0621},{"x":612.0713,"y":541.85956},{"x":613.5779,"y":511.5329},{"x":203.42625,"y":444.83066},{"x":229.21182,"y":410.30188},{"x":270.9198,"y":399.64984},{"x":313.56497,"y":407.32513},{"x":354.0185,"y":422.54175},{"x":441.31384,"y":427.71216},{"x":482.0569,"y":416.21152},{"x":524.1508,"y":412.38593},{"x":563.6658,"y":426.22824},{"x":585.87964,"y":462.41913},{"x":394.46844,"y":504.41254},{"x":393.96762,"y":546.5007},{"x":393.30322,"y":588.8532},{"x":392.592,"y":631.0979},{"x":342.77267,"y":664.1739},{"x":364.95947,"y":668.7595},{"x":390.1893,"y":673.2006},{"x":415.25336,"y":670.5106},{"x":436.7552,"y":666.998},{"x":242.81853,"y":506.60803},{"x":262.98138,"y":497.55713},{"x":305.08954,"y":499.77777},{"x":321.22906,"y":513.3391},{"x":301.56146,"y":521.4862},{"x":260.00668,"y":519.3686},{"x":462.97388,"y":517.84485},{"x":480.18396,"y":505.8437},{"x":522.09973,"y":506.45386},{"x":540.26013,"y":517.4052},{"x":523.0011,"y":528.3126},{"x":482.06146,"y":527.1489},{"x":239.75659,"y":436.6534},{"x":277.67075,"y":433.85788},{"x":315.04602,"y":438.8376},{"x":351.56638,"y":447.66888},{"x":441.58453,"y":452.58017},{"x":477.96664,"y":447.28973},{"x":515.05225,"y":445.83618},{"x":551.5746,"y":451.62656},{"x":284.38373,"y":496.0074},{"x":280.49805,"y":523.8891},{"x":284.44955,"y":508.43988},{"x":501.19617,"y":503.6411},{"x":502.51047,"y":530.9885},{"x":501.47836,"y":515.5879},{"x":357.51913,"y":508.84628},{"x":428.91504,"y":511.1767},{"x":341.02893,"y":607.7458},{"x":442.021,"y":610.8187},{"x":324.796,"y":641.13324},{"x":456.35925,"y":645.5844},{"x":304.6747,"y":728.90186},{"x":334.5838,"y":715.599},{"x":369.0162,"y":710.4512},{"x":390.31683,"y":714.9321},{"x":411.64032,"y":711.3696},{"x":445.83594,"y":718.7887},{"x":474.80075,"y":735.1745},{"x":451.05292,"y":753.0734},{"x":421.3767,"y":761.7219},{"x":390.41638,"y":763.2075},{"x":358.4326,"y":759.44385},{"x":328.53287,"y":748.5295},{"x":311.38818,"y":729.83777},{"x":350.23193,"y":734.1919},{"x":390.38123,"y":737.72284},{"x":429.7071,"y":736.18054},{"x":468.49692,"y":735.4535},{"x":430.71494,"y":739.61053},{"x":391.11005,"y":741.01697},{"x":349.98578,"y":737.08875},{"x":284.5382,"y":508.54742},{"x":501.50644,"y":515.53107}]'
# landmark = '[{"x":168.96603,"y":496.76886},{"x":168.35735,"y":527.7101},{"x":169.548,"y":558.3961},{"x":171.72018,"y":588.8369},{"x":174.93307,"y":619.26794},{"x":179.31195,"y":649.03467},{"x":184.17123,"y":678.6978},{"x":191.05627,"y":707.8003},{"x":200.86497,"y":735.76196},{"x":214.62796,"y":761.79736},{"x":231.40042,"y":785.7622},{"x":250.59685,"y":807.22406},{"x":272.07196,"y":826.8049},{"x":295.4251,"y":843.86194},{"x":321.47278,"y":856.83124},{"x":349.9967,"y":864.5885},{"x":379.85767,"y":866.998},{"x":409.25287,"y":865.863},{"x":437.7829,"y":859.18054},{"x":463.35132,"y":846.88574},{"x":486.354,"y":830.38916},{"x":507.7304,"y":811.95135},{"x":527.778,"y":791.59247},{"x":545.7143,"y":769.32104},{"x":561.4353,"y":745.4949},{"x":573.70917,"y":719.9794},{"x":583.3716,"y":690.47156},{"x":591.3898,"y":660.6565},{"x":598.52515,"y":631.38513},{"x":604.5137,"y":601.75684},{"x":609.14844,"y":572.0621},{"x":612.0713,"y":541.85956},{"x":613.5779,"y":511.5329},{"x":203.42625,"y":444.83066},{"x":229.21182,"y":410.30188},{"x":270.9198,"y":399.64984},{"x":313.56497,"y":407.32513},{"x":354.0185,"y":422.54175},{"x":441.31384,"y":427.71216},{"x":482.0569,"y":416.21152},{"x":524.1508,"y":412.38593},{"x":563.6658,"y":426.22824},{"x":585.87964,"y":462.41913},{"x":394.46844,"y":504.41254},{"x":393.96762,"y":546.5007},{"x":393.30322,"y":588.8532},{"x":392.592,"y":631.0979},{"x":342.77267,"y":664.1739},{"x":364.95947,"y":668.7595},{"x":390.1893,"y":673.2006},{"x":415.25336,"y":670.5106},{"x":436.7552,"y":666.998},{"x":242.81853,"y":506.60803},{"x":262.98138,"y":497.55713},{"x":305.08954,"y":499.77777},{"x":321.22906,"y":513.3391},{"x":301.56146,"y":521.4862},{"x":260.00668,"y":519.3686},{"x":462.97388,"y":517.84485},{"x":480.18396,"y":505.8437},{"x":522.09973,"y":506.45386},{"x":540.26013,"y":517.4052},{"x":523.0011,"y":528.3126},{"x":482.06146,"y":527.1489},{"x":239.75659,"y":436.6534},{"x":277.67075,"y":433.85788},{"x":315.04602,"y":438.8376},{"x":351.56638,"y":447.66888},{"x":441.58453,"y":452.58017},{"x":477.96664,"y":447.28973},{"x":515.05225,"y":445.83618},{"x":551.5746,"y":451.62656},{"x":284.38373,"y":496.0074},{"x":280.49805,"y":523.8891},{"x":284.44955,"y":508.43988},{"x":501.19617,"y":503.6411},{"x":502.51047,"y":530.9885},{"x":501.47836,"y":515.5879},{"x":357.51913,"y":508.84628},{"x":428.91504,"y":511.1767},{"x":341.02893,"y":607.7458},{"x":442.021,"y":610.8187},{"x":324.796,"y":641.13324},{"x":456.35925,"y":645.5844},{"x":304.6747,"y":728.90186},{"x":334.5838,"y":715.599},{"x":369.0162,"y":710.4512},{"x":390.31683,"y":714.9321},{"x":411.64032,"y":711.3696},{"x":445.83594,"y":718.7887},{"x":474.80075,"y":735.1745},{"x":451.05292,"y":753.0734},{"x":421.3767,"y":761.7219},{"x":390.41638,"y":763.2075},{"x":358.4326,"y":759.44385},{"x":328.53287,"y":748.5295},{"x":311.38818,"y":729.83777},{"x":350.23193,"y":734.1919},{"x":390.38123,"y":737.72284},{"x":429.7071,"y":736.18054},{"x":468.49692,"y":735.4535},{"x":430.71494,"y":739.61053},{"x":391.11005,"y":741.01697},{"x":349.98578,"y":737.08875},{"x":284.5382,"y":508.54742},{"x":501.50644,"y":515.53107}]'
# print(gmai_request().plastic_analystic_v2("869412032478155", "2021/06/01/1524/8a28dd0a3b8e",landmark,1))
# print(gmai_request().plastic_analystic_v2("869412032478155", "2021/06/01/1524/8a28dd0a3b8e",landmark,1))
# print(gmai_request().simulate_conf("-1"))
# print(gmai_request().simulate_conf("-1"))
print
(
gmai_request
()
.
simulate_analyze
(
"869412032478155"
,
"2021/06/02/1456/68c702f50309"
,
"3"
,
"7"
))
#
print(gmai_request().simulate_analyze("869412032478155","2021/06/02/1456/68c702f50309","3","7"))
# landmark = '[{"x":248.60858,"y":454.0434},{"x":247.92863,"y":476.7021},{"x":248.8779,"y":499.36874},{"x":251.12755,"y":521.8638},{"x":254.58401,"y":544.24164},{"x":259.10333,"y":566.1669},{"x":264.02515,"y":588.0588},{"x":270.59506,"y":609.44214},{"x":279.6361,"y":629.6998},{"x":291.60773,"y":648.29407},{"x":305.6806,"y":665.26465},{"x":321.33615,"y":680.4736},{"x":338.2943,"y":694.64526},{"x":356.13144,"y":707.5386},{"x":375.71283,"y":717.8617},{"x":397.27545,"y":724.19965},{"x":419.9613,"y":726.1914},{"x":441.62817,"y":725.2733},{"x":462.6242,"y":719.917},{"x":481.41635,"y":710.3818},{"x":498.45187,"y":697.98035},{"x":514.59436,"y":684.40234},{"x":529.7782,"y":669.4685},{"x":543.08704,"y":653.1195},{"x":554.60706,"y":635.73456},{"x":563.3266,"y":617.3142},{"x":570.0075,"y":596.0911},{"x":575.7123,"y":574.78046},{"x":581.05774,"y":554.0385},{"x":585.48157,"y":533.1105},{"x":588.66907,"y":512.06683},{"x":590.4706,"y":490.68823},{"x":591.2653,"y":469.50403},{"x":279.37485,"y":410.2143},{"x":299.98352,"y":383.6742},{"x":331.64465,"y":375.0197},{"x":364.35858,"y":381.4741},{"x":395.4406,"y":394.20447},{"x":466.45248,"y":397.95},{"x":496.4015,"y":389.2094},{"x":527.33295,"y":386.7473},{"x":555.7313,"y":398.20285},{"x":571.48254,"y":425.62354},{"x":427.4568,"y":456.95285},{"x":426.77496,"y":483.84033},{"x":426.04883,"y":510.83325},{"x":425.32236,"y":537.75256},{"x":385.83856,"y":572.9858},{"x":403.71045,"y":573.0551},{"x":423.23145,"y":574.53534},{"x":442.28857,"y":574.4508},{"x":459.13876,"y":574.9396},{"x":307.80756,"y":458.6329},{"x":323.8154,"y":450.41855},{"x":359.07312,"y":453.8022},{"x":371.75238,"y":466.2728},{"x":355.36838,"y":470.9956},{"x":321.71375,"y":468.2021},{"x":479.14362,"y":470.68353},{"x":492.57837,"y":459.77023},{"x":526.78955,"y":459.34094},{"x":540.76917,"y":469.22626},{"x":526.91675,"y":477.2774},{"x":494.3828,"y":476.6469},{"x":307.39963,"y":402.42038},{"x":336.54358,"y":400.2494},{"x":365.31128,"y":405.05597},{"x":393.4093,"y":412.95276},{"x":466.55408,"y":416.23398},{"x":493.2259,"y":412.04782},{"x":520.28235,"y":410.81372},{"x":546.7446,"y":415.7663},{"x":341.78073,"y":449.21838},{"x":338.20166,"y":471.98853},{"x":342.39044,"y":460.15692},{"x":509.66327,"y":456.7909},{"x":510.57373,"y":479.22314},{"x":508.77704,"y":467.26038},{"x":399.44565,"y":461.61548},{"x":453.4572,"y":463.86423},{"x":384.4139,"y":527.5456},{"x":463.68613,"y":530.3157},{"x":369.6485,"y":554.5674},{"x":475.98178,"y":558.04224},{"x":358.72372,"y":632.25916},{"x":379.92645,"y":612.99927},{"x":406.5278,"y":600.8932},{"x":422.78525,"y":604.4064},{"x":439.0467,"y":601.5054},{"x":463.0918,"y":613.59924},{"x":480.34888,"y":633.28406},{"x":463.28207,"y":645.23676},{"x":442.62195,"y":651.3627},{"x":420.9704,"y":652.71295},{"x":398.036,"y":651.2082},{"x":376.4565,"y":644.82745},{"x":363.59555,"y":631.5963},{"x":392.39032,"y":626.09314},{"x":422.20786,"y":626.16754},{"x":449.31833,"y":626.3133},{"x":475.72333,"y":632.3503},{"x":448.87988,"y":625.9888},{"x":421.7511,"y":626.1827},{"x":392.28534,"y":625.9193},{"x":342.4176,"y":460.03064},{"x":508.8405,"y":467.07236}]'
# landmark = '[{"x":248.60858,"y":454.0434},{"x":247.92863,"y":476.7021},{"x":248.8779,"y":499.36874},{"x":251.12755,"y":521.8638},{"x":254.58401,"y":544.24164},{"x":259.10333,"y":566.1669},{"x":264.02515,"y":588.0588},{"x":270.59506,"y":609.44214},{"x":279.6361,"y":629.6998},{"x":291.60773,"y":648.29407},{"x":305.6806,"y":665.26465},{"x":321.33615,"y":680.4736},{"x":338.2943,"y":694.64526},{"x":356.13144,"y":707.5386},{"x":375.71283,"y":717.8617},{"x":397.27545,"y":724.19965},{"x":419.9613,"y":726.1914},{"x":441.62817,"y":725.2733},{"x":462.6242,"y":719.917},{"x":481.41635,"y":710.3818},{"x":498.45187,"y":697.98035},{"x":514.59436,"y":684.40234},{"x":529.7782,"y":669.4685},{"x":543.08704,"y":653.1195},{"x":554.60706,"y":635.73456},{"x":563.3266,"y":617.3142},{"x":570.0075,"y":596.0911},{"x":575.7123,"y":574.78046},{"x":581.05774,"y":554.0385},{"x":585.48157,"y":533.1105},{"x":588.66907,"y":512.06683},{"x":590.4706,"y":490.68823},{"x":591.2653,"y":469.50403},{"x":279.37485,"y":410.2143},{"x":299.98352,"y":383.6742},{"x":331.64465,"y":375.0197},{"x":364.35858,"y":381.4741},{"x":395.4406,"y":394.20447},{"x":466.45248,"y":397.95},{"x":496.4015,"y":389.2094},{"x":527.33295,"y":386.7473},{"x":555.7313,"y":398.20285},{"x":571.48254,"y":425.62354},{"x":427.4568,"y":456.95285},{"x":426.77496,"y":483.84033},{"x":426.04883,"y":510.83325},{"x":425.32236,"y":537.75256},{"x":385.83856,"y":572.9858},{"x":403.71045,"y":573.0551},{"x":423.23145,"y":574.53534},{"x":442.28857,"y":574.4508},{"x":459.13876,"y":574.9396},{"x":307.80756,"y":458.6329},{"x":323.8154,"y":450.41855},{"x":359.07312,"y":453.8022},{"x":371.75238,"y":466.2728},{"x":355.36838,"y":470.9956},{"x":321.71375,"y":468.2021},{"x":479.14362,"y":470.68353},{"x":492.57837,"y":459.77023},{"x":526.78955,"y":459.34094},{"x":540.76917,"y":469.22626},{"x":526.91675,"y":477.2774},{"x":494.3828,"y":476.6469},{"x":307.39963,"y":402.42038},{"x":336.54358,"y":400.2494},{"x":365.31128,"y":405.05597},{"x":393.4093,"y":412.95276},{"x":466.55408,"y":416.23398},{"x":493.2259,"y":412.04782},{"x":520.28235,"y":410.81372},{"x":546.7446,"y":415.7663},{"x":341.78073,"y":449.21838},{"x":338.20166,"y":471.98853},{"x":342.39044,"y":460.15692},{"x":509.66327,"y":456.7909},{"x":510.57373,"y":479.22314},{"x":508.77704,"y":467.26038},{"x":399.44565,"y":461.61548},{"x":453.4572,"y":463.86423},{"x":384.4139,"y":527.5456},{"x":463.68613,"y":530.3157},{"x":369.6485,"y":554.5674},{"x":475.98178,"y":558.04224},{"x":358.72372,"y":632.25916},{"x":379.92645,"y":612.99927},{"x":406.5278,"y":600.8932},{"x":422.78525,"y":604.4064},{"x":439.0467,"y":601.5054},{"x":463.0918,"y":613.59924},{"x":480.34888,"y":633.28406},{"x":463.28207,"y":645.23676},{"x":442.62195,"y":651.3627},{"x":420.9704,"y":652.71295},{"x":398.036,"y":651.2082},{"x":376.4565,"y":644.82745},{"x":363.59555,"y":631.5963},{"x":392.39032,"y":626.09314},{"x":422.20786,"y":626.16754},{"x":449.31833,"y":626.3133},{"x":475.72333,"y":632.3503},{"x":448.87988,"y":625.9888},{"x":421.7511,"y":626.1827},{"x":392.28534,"y":625.9193},{"x":342.4176,"y":460.03064},{"x":508.8405,"y":467.07236}]'
# 测颜值和 上次结果
# 测颜值和 上次结果
# print(gmai_request().plastic_analysis_v3("869412032478155", "2021/06/01/1524/8a28dd0a3b8e",landmark,1))
# print(gmai_request().plastic_analysis_v3("869412032478155", "2021/06/01/1524/8a28dd0a3b8e",landmark,1))
...
...
all_backend_api/gmai_request.yaml
View file @
2e83a3f6
...
@@ -57,3 +57,10 @@ plastic_analystic_v2:
...
@@ -57,3 +57,10 @@ plastic_analystic_v2:
image_url
:
${image_url}
image_url
:
${image_url}
landmark
:
${landmark}
landmark
:
${landmark}
cheek_style_classify_id
:
${cheek_style_classify_id}
cheek_style_classify_id
:
${cheek_style_classify_id}
plastic_cheek_style_classify
:
method
:
get
url
:
/gm_ai/plastic/cheek_style_classify
params
:
version
:
${version}
\ No newline at end of file
all_backend_api/hybrid_promotion_request.py
0 → 100644
View file @
2e83a3f6
import
path_setting
from
in_common.base_request
import
BaseRequest
class
hybrid_promotion_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
HYBRID_PROMOTION_CONFIG
)
#商祥页-sku信息
def
related_service_data
(
self
,
service_id
,
page
):
self
.
params
[
"service_id"
]
=
service_id
self
.
params
[
"page"
]
=
page
return
self
.
api_send
(
self
.
data
[
"related_service_data"
])
if
__name__
==
'__main__'
:
#打印商祥页-推荐商品列表接口返回
print
(
hybrid_promotion_request
()
.
related_service_data
(
"5815040"
,
1
))
all_backend_api/hybrid_promotion_request.yaml
0 → 100644
View file @
2e83a3f6
#商祥页-推荐商品列表
related_service_data
:
method
:
get
url
:
/hybrid/promotion/related_service/_data
params
:
service_id
:
${service_id}
page
:
${page}
data
:
{}
json
:
{}
\ No newline at end of file
all_backend_api/hybrid_request.py
0 → 100644
View file @
2e83a3f6
import
path_setting
from
in_common.base_request
import
BaseRequest
from
bs4
import
BeautifulSoup
class
hybrid_request
(
BaseRequest
):
def
__init__
(
self
):
#百科详情页-项目聚合百科
self
.
data
=
self
.
api_load
(
path_setting
.
SUBWIKI_CONFIG
)
#百科详情页-项目百科
self
.
data
=
self
.
api_load
(
path_setting
.
BASEWIKI_ITEM_CONFIG
)
#百科详情页-药品(仪器、材料)百科
self
.
data
=
self
.
api_load
(
path_setting
.
BASEWIKI_PRODUCT_CONFIG
)
#百科详情页-品牌百科
self
.
data
=
self
.
api_load
(
path_setting
.
BRAND_CONFIG
)
#百科详情页-项目聚合百科
def
sub_wiki
(
self
,
version
,
current_city_id
,
device_id
=
'97B6764B-2135-4761-9911-701C38CBC272'
):
self
.
params
[
'current_city_id'
]
=
current_city_id
self
.
params
[
'version'
]
=
version
return
self
.
api_send
(
self
.
data
[
'sub_wiki'
])
# return self.data
#百科详情页-项目百科
def
basewiki_item
(
self
,
version
,
device_id
=
'97B6764B-2135-4761-9911-701C38CBC272'
):
self
.
params
[
'version'
]
=
version
return
self
.
api_send
(
self
.
data
[
'basewiki_item'
])
#百科详情页-药品(仪器、材料)百科
def
basewiki_product
(
self
,
version
,
device_id
=
'97B6764B-2135-4761-9911-701C38CBC272'
):
self
.
params
[
'version'
]
=
version
return
self
.
api_send
(
self
.
data
[
'basewiki_product'
])
#百科详情页-品牌百科
def
brand
(
self
,
version
,
device_id
=
'97B6764B-2135-4761-9911-701C38CBC272'
):
self
.
params
[
'version'
]
=
version
return
self
.
api_send
(
self
.
data
[
'brand'
])
if
__name__
==
'__main__'
:
# print(self.data)
# print(hybrid_request().sub_wiki("744.0", "beijing"))
# print(type(hybrid_request().sub_wiki("744.0", "beijing")))
soup
=
BeautifulSoup
(
hybrid_request
()
.
sub_wiki
(
"744.0"
,
"beijing"
),
'lxml'
)
# html.parser是解析器,也可是lxml
print
(
soup
.
prettify
(),
'百科详情页-项目聚合百科'
)
#输出soup对象的内容
print
(
soup
.
title
)
\ No newline at end of file
all_backend_api/hybrid_request.yaml
0 → 100644
View file @
2e83a3f6
#百科详情页-项目聚合百科-玻尿酸
sub_wiki
:
method
:
GET
url
:
/hybrid/sub_wiki/127
params
:
current_city_id
:
${current_city_id}
version
:
${version}
data
:
{}
json
:
{}
#百科详情页-项目百科-水光针
basewiki_item
:
method
:
GET
url
:
/hybrid/base_wiki/item/141
params
:
version
:
${version}
data
:
{}
json
:
{}
#百科详情页-药品(仪器、材料)百科-菲洛嘉
basewiki_product
:
method
:
GET
url
:
/hybrid/base_wiki/product/16
params
:
version
:
${version}
data
:
{}
json
:
{}
#百科详情页-品牌百科-德玛莎
brand
:
method
:
GET
url
:
/hybrid/brand/98
params
:
version
:
${version}
data
:
{}
json
:
{}
\ No newline at end of file
all_backend_api/janus_request.py
View file @
2e83a3f6
...
@@ -74,6 +74,12 @@ class janus_request(BaseRequest):
...
@@ -74,6 +74,12 @@ class janus_request(BaseRequest):
self
.
params
[
"service_item_id"
]
=
service_item_id
self
.
params
[
"service_item_id"
]
=
service_item_id
return
self
.
api_send
(
self
.
data
[
"sku_info"
])
return
self
.
api_send
(
self
.
data
[
"sku_info"
])
#商祥页-美券列表-我的美券点击-744版本及以后-新接口
def
product_coupon_my_list
(
self
,
start_num
,
tab_id
):
self
.
params
[
"start_num"
]
=
start_num
self
.
params
[
"tab_id"
]
=
tab_id
return
self
.
api_send
(
self
.
data
[
"product_coupon_my_list"
])
# 品类聚合页面商品列表
# 品类聚合页面商品列表
def
tag_service
(
self
,
size
,
tag_ids
,
offset
,
tag_id
,
version
,
device_id
):
def
tag_service
(
self
,
size
,
tag_ids
,
offset
,
tag_id
,
version
,
device_id
):
print
(
"fgx"
)
print
(
"fgx"
)
...
@@ -104,6 +110,20 @@ class janus_request(BaseRequest):
...
@@ -104,6 +110,20 @@ class janus_request(BaseRequest):
return
self
.
api_send
(
self
.
data
[
'keyword_tip'
])
return
self
.
api_send
(
self
.
data
[
'keyword_tip'
])
#次卡-确认订单
def
beauty_card_confirm
(
self
,
sku_id
,
number
,
use_bc_coupon
,
bc_coupon_id
):
self
.
params
[
"sku_id"
]
=
sku_id
self
.
params
[
"number"
]
=
number
self
.
params
[
"use_bc_coupon"
]
=
use_bc_coupon
self
.
params
[
"bc_coupon_id"
]
=
bc_coupon_id
return
self
.
api_send
(
self
.
data
[
"beauty_card_confirm"
])
# 新版本我的美券列表
def
product_my_list
(
self
,
start_num
,
tab_id
):
self
.
params
[
'start_num'
]
=
start_num
self
.
params
[
'tab_id'
]
=
tab_id
return
self
.
api_send
(
self
.
data
[
'coupon_my_list'
])
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
#打印购物车-猜你喜欢列表接口返回
#打印购物车-猜你喜欢列表接口返回
...
@@ -112,6 +132,8 @@ if __name__ == '__main__':
...
@@ -112,6 +132,8 @@ if __name__ == '__main__':
print
(
janus_request
()
.
product_detail
(
"5857263"
,
"618788"
,
"7.43.0"
))
print
(
janus_request
()
.
product_detail
(
"5857263"
,
"618788"
,
"7.43.0"
))
#打印商祥页-sku信息接口返回
#打印商祥页-sku信息接口返回
print
(
janus_request
()
.
sku_info
(
"5857263"
,
"618788"
))
print
(
janus_request
()
.
sku_info
(
"5857263"
,
"618788"
))
#打印商祥页-美券列表-我的美券点击-744版本及以后-新接口返回
print
(
janus_request
()
.
product_coupon_my_list
(
0
,
0
))
#品类聚合页面商品列表接口返回
#品类聚合页面商品列表接口返回
print
(
janus_request
()
.
tag_service
())
print
(
janus_request
()
.
tag_service
())
...
@@ -121,4 +143,9 @@ if __name__ == '__main__':
...
@@ -121,4 +143,9 @@ if __name__ == '__main__':
print
(
janus_request
()
.
polymer
())
print
(
janus_request
()
.
polymer
())
print
(
"fgx"
)
print
(
"fgx"
)
#打印次卡-确认订单接口返回
print
(
janus_request
()
.
beauty_card_confirm
(
"10176"
,
1
,
1
,
0
))
print
(
janus_request
()
.
product_my_list
(
0
,
0
))
all_backend_api/janus_request.yaml
View file @
2e83a3f6
...
@@ -58,6 +58,17 @@ sku_info:
...
@@ -58,6 +58,17 @@ sku_info:
data
:
{}
data
:
{}
json
:
{}
json
:
{}
#商祥页-美券列表-我的美券点击-744版本及以后-新接口
product_coupon_my_list
:
method
:
get
url
:
/api/janus/product/coupon/my_list
params
:
start_num
:
${start_num}
tab_id
:
${tab_id}
data
:
{}
json
:
{}
isLogin
:
1
#品类聚合页面商品列表的
#品类聚合页面商品列表的
tag_service
:
tag_service
:
method
:
GET
method
:
GET
...
@@ -96,8 +107,29 @@ keyword_tip:
...
@@ -96,8 +107,29 @@ keyword_tip:
data
:
{}
data
:
{}
json
:
{}
json
:
{}
#次卡-确认订单
beauty_card_confirm
:
method
:
post
url
:
/api/janus/beauty_card/order/confirm
params
:
{}
data
:
sku_id
:
${sku_id}
number
:
${number}
bctraceid
:
"
"
use_bc_coupon
:
${use_bc_coupon}
bc_coupon_id
:
${bc_coupon_id}
json
:
{}
isLogin
:
1
#新版本我的美券
coupon_my_list
:
method
:
get
url
:
/api/janus/product/coupon/my_list
params
:
start_num
:
${start_num}
tab_id
:
${tab_id}
isLogin
:
1
all_backend_api/orders_request.py
0 → 100644
View file @
2e83a3f6
import
path_setting
from
in_common.base_request
import
BaseRequest
class
orders_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
ORDERS_MY_V2_CONFIG
)
# 我的订单列表
def
my_v2
(
self
,
start_num
,
status
,
version
):
self
.
params
[
"start_num"
]
=
start_num
self
.
params
[
"status"
]
=
status
self
.
params
[
"version"
]
=
version
return
self
.
api_send
(
self
.
data
[
"my_v2"
])
if
__name__
==
'__main__'
:
print
(
orders_request
()
.
my_v2
(
0
,
1
,
"7.44.0"
))
all_backend_api/orders_request.yaml
0 → 100644
View file @
2e83a3f6
my_v2
:
method
:
get
url
:
/api/orders/my/v2
params
:
start_num
:
${start_num}
status
:
${status}
version
:
${version}
isLogin
:
1
all_backend_api/pay_request.py
0 → 100644
View file @
2e83a3f6
import
path_setting
from
in_common.base_request
import
BaseRequest
class
pay_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
wechat_pay
=
self
.
api_load
(
path_setting
.
WECHAT_PAY
)
def
wechat_prepay
(
self
,
settlement_id
):
self
.
params
[
"settlement_id"
]
=
settlement_id
return
self
.
api_send
(
self
.
wechat_pay
[
"wechat_prepay"
])
def
alipay_prepay
(
self
,
settlement_id
,
version
,
is_huabei
,
huabei_period
):
self
.
params
[
"settlement_id"
]
=
settlement_id
self
.
params
[
"version"
]
=
version
self
.
params
[
"is_huabei"
]
=
is_huabei
self
.
params
[
"huabei_period"
]
=
huabei_period
return
self
.
api_send
(
self
.
wechat_pay
[
"alipay_prepay"
])
def
jump
(
self
,
settlement_id
):
self
.
params
[
"settlement_id"
]
=
settlement_id
return
self
.
api_send
(
self
.
wechat_pay
[
"jump"
])
if
__name__
==
'__main__'
:
# print(settlement_request().preview_v1("beijing", "599428", 1, 1, 1, "true", 0))
print
(
pay_request
()
.
wechat_prepay
(
522139664651
))
\ No newline at end of file
all_backend_api/pay_request.yaml
0 → 100644
View file @
2e83a3f6
wechat_prepay
:
method
:
post
url
:
/pay/wechat/prepay
params
:
current_city_id
:
"
beijing"
version
:
7.44.0
data
:
settlement_id
:
${settlement_id}
isLogin
:
1
alipay_prepay
:
method
:
post
url
:
/pay/alipay/prepay
params
:
current_city_id
:
"
beijing"
version
:
7.44.0
data
:
settlement_id
:
${settlement_id}
version
:
${version}
is_huabei
:
${is_huabei}
huabei_period
:
${huabei_period}
isLogin
:
1
jump
:
method
:
post
url
:
/pay/jump
params
:
current_city_id
:
"
beijing"
version
:
7.44.0
data
:
settlement_id
:
${settlement_id}
isLogin
:
1
all_backend_api/personal_recommends.yaml
0 → 100644
View file @
2e83a3f6
#推荐内容
personal_recommends
:
method
:
get
url
:
/api/personal/recommends/v1
params
:
current_city_id
:
${current_city_id}
id
:
${id}
from_type
:
${from_type}
data
:
{}
json
:
{}
isLogin
:
0
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#查看日记本相册页面
#album:
# method: get
# url: /hybrid/diary/album/17586198/_data
# params:
# data: {}
# json: {}
# isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
all_backend_api/personal_recommends_request.py
0 → 100644
View file @
2e83a3f6
import
path_setting
from
in_common.base_request
import
BaseRequest
class
personal_recommends_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
PERSONAL_RECOMMENDS_CONFIG
)
def
personal_recommends
(
self
,
current_city_id
,
id
,
from_type
):
self
.
params
[
"current_city_id"
]
=
current_city_id
self
.
params
[
"id"
]
=
id
self
.
params
[
"from_type"
]
=
from_type
return
self
.
api_send
(
self
.
data
[
"personal_recommends"
])
all_backend_api/settlement_request.py
0 → 100644
View file @
2e83a3f6
import
path_setting
from
in_common.base_request
import
BaseRequest
class
settlement_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
preview
=
self
.
api_load
(
path_setting
.
PREVIEW_V1
)
def
preview_v1
(
self
,
current_city_id
,
service_item_id
,
number
,
use_platform_coupon
,
use_doctor_coupon
,
use_coupon_grey
,
is_create_groupbuy
):
self
.
params
[
"current_city_id"
]
=
current_city_id
self
.
params
[
"service_item_id"
]
=
service_item_id
self
.
params
[
"number"
]
=
number
self
.
params
[
"use_platform_coupon"
]
=
use_platform_coupon
self
.
params
[
"use_doctor_coupon"
]
=
use_doctor_coupon
self
.
params
[
"use_coupon_grey"
]
=
use_coupon_grey
self
.
params
[
"is_create_groupbuy"
]
=
is_create_groupbuy
return
self
.
api_send
(
self
.
preview
[
"preview_v1"
])
def
pay_v1
(
self
,
actual_pay
,
payment_final_price
,
is_contains_groupbuy_order
,
mul_orders_number
):
self
.
params
[
"actual_pay"
]
=
actual_pay
self
.
params
[
"payment_final_price"
]
=
payment_final_price
self
.
params
[
"is_contains_groupbuy_order"
]
=
is_contains_groupbuy_order
self
.
params
[
"mul_orders_number"
]
=
mul_orders_number
return
self
.
api_send
(
self
.
preview
[
"pay_v1"
])
def
create_v1
(
self
,
service_item_id
,
number
,
platform_coupon_id
,
use_point
,
is_doctor_see
,
doctor_coupon_id
,
insurance_info
,
is_create_groupbuy
):
self
.
params
[
"service_item_id"
]
=
service_item_id
self
.
params
[
"number"
]
=
number
self
.
params
[
"platform_coupon_id"
]
=
platform_coupon_id
self
.
params
[
"use_point"
]
=
use_point
self
.
params
[
"is_doctor_see"
]
=
is_doctor_see
self
.
params
[
"doctor_coupon_id"
]
=
doctor_coupon_id
self
.
params
[
"insurance_info"
]
=
insurance_info
self
.
params
[
"is_create_groupbuy"
]
=
is_create_groupbuy
return
self
.
api_send
(
self
.
preview
[
"create_v1"
])
def
pay
(
self
,
id
):
self
.
params
[
"id"
]
=
id
return
self
.
api_send
(
self
.
preview
[
"pay"
])
def
detail
(
self
,
id
):
self
.
params
[
"id"
]
=
id
return
self
.
api_send
(
self
.
preview
[
"detail"
])
def
delete
(
self
,
id
,
cancel_reason_value
):
self
.
params
[
"id"
]
=
id
self
.
params
[
"cancel_reason_value"
]
=
cancel_reason_value
return
self
.
api_send
(
self
.
preview
[
"delete"
])
if
__name__
==
'__main__'
:
# print(settlement_request().preview_v1("beijing", "599428", 1, 1, 1, "true", 0))
print
(
settlement_request
()
.
delete
(
"522139664651"
,
"不想买了"
))
\ No newline at end of file
all_backend_api/settlement_request.yaml
0 → 100644
View file @
2e83a3f6
preview_v1
:
method
:
post
url
:
/api/settlement/preview/v1
params
:
current_city_id
:
${current_city_id}
data
:
service_item_id
:
${service_item_id}
number
:
${number}
use_platform_coupon
:
${use_platform_coupon}
use_doctor_coupon
:
${use_doctor_coupon}
use_coupon_grey
:
${use_coupon_grey}
is_create_groupbuy
:
${is_create_groupbuy}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
pay_v1
:
method
:
get
url
:
/api/settlement/pay/v1
params
:
current_city_id
:
"
beijing"
actual_pay
:
${actual_pay}
payment_final_price
:
${payment_final_price}
is_contains_groupbuy_order
:
${is_contains_groupbuy_order}
mul_orders_number
:
${mul_orders_number}
data
:
{}
json
:
{}
isLogin
:
1
create_v1
:
method
:
post
url
:
/api/settlement/create/v1
params
:
current_city_id
:
"
beijing"
version
:
7.44.0
data
:
service_item_id
:
${service_item_id}
number
:
${number}
phone
:
"
18301089978"
platform_coupon_id
:
${platform_coupon_id}
use_point
:
${use_point}
is_doctor_see
:
${is_doctor_see}
doctor_coupon_id
:
${doctor_coupon_id}
insurance_info
:
${insurance_info}
is_create_groupbuy
:
${is_create_groupbuy}
isLogin
:
1
pay
:
method
:
get
url
:
/api/settlement/pay
params
:
current_city_id
:
"
beijing"
id
:
${id}
version
:
7.44.0
data
:
{}
isLogin
:
1
detail
:
method
:
get
url
:
/api/settlement/detail
params
:
current_city_id
:
"
beijing"
id
:
${id}
version
:
7.44.0
data
:
{}
isLogin
:
1
delete
:
method
:
post
url
:
/api/settlement/delete
params
:
current_city_id
:
"
beijing"
version
:
7.44.0
data
:
id
:
${id}
cancel_reason_value
:
${cancel_reason_value}
json
:
{}
isLogin
:
1
all_backend_api/tractate_detail.yaml
0 → 100644
View file @
2e83a3f6
#查看用户帖子详情页
tractate_detail
:
method
:
get
url
:
/api/tractate/new_detail
params
:
current_city_id
:
${current_city_id}
tractate_id
:
${tractate_id}
data_type
:
${data_type}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#查看日记本相册页面
#album:
# method: get
# url: /hybrid/diary/album/17586198/_data
# params:
# data: {}
# json: {}
# isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
all_backend_api/tractate_detail_request.py
0 → 100644
View file @
2e83a3f6
import
path_setting
from
in_common.base_request
import
BaseRequest
class
tractate_detail_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
TRACTATE_DETAIL_CONFIG
)
def
tractate_detail
(
self
,
current_city_id
,
tractate_id
,
data_type
):
self
.
params
[
"current_city_id"
]
=
current_city_id
self
.
params
[
"tractate_id"
]
=
tractate_id
self
.
params
[
"data_type"
]
=
data_type
return
self
.
api_send
(
self
.
data
[
"tractate_detail"
])
all_backend_api/visual_beauty_card.py
0 → 100644
View file @
2e83a3f6
import
path_setting
from
in_common.base_request
import
BaseRequest
class
visual_beauty_card_request
(
BaseRequest
):
def
__init__
(
self
):
#自定义专题-更美次卡橱窗组件商品
self
.
data
=
self
.
api_load
(
path_setting
.
VISUAL_BEAUTY_CARD_SERVICES_CONFIG
)
#自定义专题-更美次卡商品列表筛选器
self
.
data
=
self
.
api_load
(
path_setting
.
BEAUTYCARD_FILTERS_CONFIG
)
#自定义专题-更美次卡橱窗组件商品
def
visual_beauty_card_services
(
self
,
unit_id
,
current_city_id
,
page
,
page_size
,
version
,
device_id
=
'97B6764B-2135-4761-9911-701C38CBC272'
):
self
.
params
[
"unit_id"
]
=
unit_id
self
.
params
[
"current_city_id"
]
=
current_city_id
self
.
params
[
"page"
]
=
page
self
.
params
[
"page_size"
]
=
page_size
self
.
params
[
"version"
]
=
version
return
self
.
api_send
(
self
.
data
[
'visual_beauty_card_services'
])
#自定义专题-更美次卡商品列表筛选器
def
beautycard_filters
(
self
,
unit_id
,
current_city_id
,
version
,
device_id
=
'97B6764B-2135-4761-9911-701C38CBC272'
):
self
.
params
[
"unit_id"
]
=
unit_id
self
.
params
[
"current_city_id"
]
=
current_city_id
self
.
params
[
"version"
]
=
version
return
self
.
api_send
(
self
.
data
[
'beautycard_filters'
])
#自定义专题-更美次卡商品列表组件商品
def
beautycard_skus
(
self
,
unit_id
,
tag_id
,
area
,
sort_type
,
page
,
page_size
,
device_id
=
'97B6764B-2135-4761-9911-701C38CBC272'
):
self
.
params
[
"unit_id"
]
=
unit_id
self
.
params
[
"tag_id"
]
=
tag_id
self
.
params
[
"area"
]
=
area
self
.
params
[
"sort_type"
]
=
sort_type
self
.
params
[
"page"
]
=
page
self
.
params
[
"page_size"
]
=
page_size
return
self
.
api_send
(
self
.
data
[
'beautycard_skus'
])
\ No newline at end of file
all_backend_api/visual_beauty_card.yaml
0 → 100644
View file @
2e83a3f6
visual_beauty_card_services
:
method
:
GET
url
:
/api/janus/visual_beauty_card/services
params
:
#组件id
unit_id
:
${unit_id}
current_city_id
:
${current_city_id}
#分页
page
:
${page}
#分页大小
page_size
:
${page_size}
version
:
${version}
data
:
{}
json
:
{}
beautycard_filters
:
method
:
GET
url
:
/api/janus/visual_beauty_card/list_unit/filters
params
:
#组件id
unit_id
:
${unit_id}
current_city_id
:
${current_city_id}
version
:
${version}
data
:
{}
json
:
{}
beautycard_skus
:
method
:
GET
url
:
/api/janus/visual_beauty_card/list_unit/skus
params
:
#组件id
unit_id
:
${unit_id}
#类型筛选器(-1: 全部类型)
tag_id
:
${tag_id}
#城市筛选器
area
:
${area}
#排序方式(0: 默认排序, 1: 销量排序, 2: 价格排序, 3: 上架时间排序)
sort_type
:
${sort_type}
#分页
page
:
${page}
#分页大小
page_size
:
${page_size}
data
:
{}
json
:
{}
host.yaml
View file @
2e83a3f6
develop_host
:
develop_host
:
# backend: http://backend.paas-develop.env
backend
:
http://backend.paas-develop.env
doctor
:
http://doctor.paas-develop.env
doctor
:
http://doctor.paas-develop.env
# backend: https://backend.igengmei.com
# backend: https://backend.igengmei.com
in_common/base_request.py
View file @
2e83a3f6
...
@@ -69,11 +69,23 @@ class BaseRequest:
...
@@ -69,11 +69,23 @@ class BaseRequest:
# headers=user_headers,
# headers=user_headers,
data
=
req
.
get
(
'data'
),
data
=
req
.
get
(
'data'
),
json
=
req
.
get
(
'json'
),
json
=
req
.
get
(
'json'
),
# verify=False
# proxies={"http":"172.30.9.226:8888"}
# proxies={"http":"172.30.9.226:8888"}
)
)
<<<<<<<
HEAD
print
(
"0000000"
,
r
)
print
(
"0000000"
,
r
)
return
r
.
json
()
return
r
.
json
()
=======
try
:
content_type
=
r
.
headers
.
get
(
"content-type"
)
.
split
(
";"
)[
0
]
except
:
content_type
=
"application/json"
if
content_type
==
'application/json'
:
return
r
.
json
()
return
r
.
text
>>>>>>>
fb89a48b68dd9fbb39318e85c4602c5ae880f25b
# 随机生成trace_id
# 随机生成trace_id
def
trace_id
(
self
):
def
trace_id
(
self
):
...
...
login_session_function.py
View file @
2e83a3f6
...
@@ -31,7 +31,8 @@ class LoginFunction:
...
@@ -31,7 +31,8 @@ class LoginFunction:
url
=
url
,
url
=
url
,
params
=
self
.
params
[
"backend_login"
][
"params"
],
params
=
self
.
params
[
"backend_login"
][
"params"
],
data
=
self
.
params
[
"backend_login"
][
"data"
],
data
=
self
.
params
[
"backend_login"
][
"data"
],
headers
=
{
'Connection'
:
'close'
}
headers
=
{
'Connection'
:
'close'
},
# verify=False
)
)
return
s
return
s
...
...
login_session_function.yaml
View file @
2e83a3f6
...
@@ -9,6 +9,16 @@ backend_login:
...
@@ -9,6 +9,16 @@ backend_login:
vfc_type
:
vfc_type
:
face_token
:
face_token
:
#backend_login:
# method: POST
# url: /api/accounts/login/password
# params:
# current_city_id: "beijing"
# data:
# phone: "+8618646292152"
# password: 111111
doctor_login
:
doctor_login
:
method
:
post
method
:
post
url
:
/api/web/account/login
url
:
/api/web/account/login
...
...
path_setting.py
View file @
2e83a3f6
...
@@ -9,8 +9,49 @@ LOGIN_FUNCTION_DATA = os.path.join(BASE_DIR, "backend_auto", "login_session_func
...
@@ -9,8 +9,49 @@ LOGIN_FUNCTION_DATA = os.path.join(BASE_DIR, "backend_auto", "login_session_func
APYAML_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"account_request.yaml"
)
APYAML_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"account_request.yaml"
)
LOGIN_VFC
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/account_data"
,
"login_vfc.yaml"
)
LOGIN_VFC
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/account_data"
,
"login_vfc.yaml"
)
#日记本详情页--字段判空
DIARY_DATA_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"diary_data_request.yaml"
)
DIARY_DATA_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"diary_data_request.yaml"
)
DIARY_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/account_data"
,
"diary_data.yaml"
)
DIARY_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/account_data"
,
"diary_data.yaml"
)
#日记本关联美购
DIARY_SERVICE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"diary_service.yaml"
)
DIARY_SERVICE
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/diary"
,
"diary_service.yaml"
)
#日记本收藏
DIARY_ISFAVOR_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"diary_isfavor.yaml"
)
DIARY_ISFAVOR
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/diary"
,
"diary_isfavor.yaml"
)
# 日记本取消收藏
DIARY_CANCELFAVOR_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"diary_cancelfavor.yaml"
)
DIARY_CANCELFAVOR
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/diary"
,
"diary_cancelfavor.yaml"
)
# 日记本列表-日记贴点赞相关()
DIARY_VOTE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"diary_vote.yaml"
)
DIARY_VOTE
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/diary"
,
"diary_vote.yaml"
)
# 日记本列表-展示评论列表
DIARY_COMMON_REPLY_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"diary_common_reply.yaml"
)
DIARY_COMMON_REPLY
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/diary"
,
"diary_common_reply.yaml"
)
# 日记本修改日记信息operation--目前好像直接用接口写无权限稍后解决
DIARY_OPERATION_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"diary_operation.yaml"
)
DIARY_OPERATION
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/diary"
,
"diary_operation.yaml"
)
# 日记本创建日记贴信息-
DIARY_UPDATE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"diary_update.yaml"
)
DIARY_UPDATE
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/diary"
,
"diary_update.yaml"
)
# 日记本进入相册页
DIARY_ALBUM_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"diary_album.yaml"
)
DIARY_ALBUM
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/diary"
,
"diary_album.yaml"
)
# 日记本&帖子&日记贴&帖子&问答各个详情页下方推荐内容
PERSONAL_RECOMMENDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"personal_recommends.yaml"
)
PERSONAL_RECOMMENDS
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/personal_data"
,
"personal_recommends.yaml"
)
# 帖子详情页内容
TRACTATE_DETAIL_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"tractate_detail.yaml"
)
TRACTATE_DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/tractate_data"
,
"tractate_detail.yaml"
)
...
@@ -44,6 +85,10 @@ TAG_DATA=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web2_data", "tag_
...
@@ -44,6 +85,10 @@ TAG_DATA=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web2_data", "tag_
#医生后台 - 发布商品选择类目doctor
#医生后台 - 发布商品选择类目doctor
DOCTOR_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web_data"
,
"doctor_submechanisms.yaml"
)
DOCTOR_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web_data"
,
"doctor_submechanisms.yaml"
)
#搜索首页-热门搜索
KEYWORDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"search_request.yaml"
)
KEYWORDS
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/search_data"
,
"keywords.yaml"
)
#医生后台-保存新增商品
#医生后台-保存新增商品
REGISTER_URL
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_doctor_api"
,
"glmer_request.yaml"
)
REGISTER_URL
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_doctor_api"
,
"glmer_request.yaml"
)
REGISTER_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/glmer_data"
,
"service_register.yaml"
)
REGISTER_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/glmer_data"
,
"service_register.yaml"
)
...
@@ -82,6 +127,10 @@ ONEIMAGE_RECOMEND_SERVICES_DATA = os.path.join(BASE_DIR, "backend_auto/test_back
...
@@ -82,6 +127,10 @@ ONEIMAGE_RECOMEND_SERVICES_DATA = os.path.join(BASE_DIR, "backend_auto/test_back
# 测颜值结果页获取小程序二维码
# 测颜值结果页获取小程序二维码
XCX_GENGMEI_GET_WXACODE_UNLIMITED_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"xcx_request.yaml"
)
XCX_GENGMEI_GET_WXACODE_UNLIMITED_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"xcx_request.yaml"
)
XCX_GENGMEI_GET_WXACODE_UNLIMITED_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/xcx_data"
,
"gengmei_get_wxacode_unlimited.yaml"
)
XCX_GENGMEI_GET_WXACODE_UNLIMITED_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/xcx_data"
,
"gengmei_get_wxacode_unlimited.yaml"
)
# 测颜值根据标签召回日记
FACE_DIARY_CARDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"face_request.yaml"
)
FACE_DIARY_CARDS_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/face_data"
,
"diary_cards.yaml"
)
# 测肤结果页 / AI变脸结果页
# 测肤结果页 / AI变脸结果页
GMAI_SKIN_NEWREPORT_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"gmai_request.yaml"
)
GMAI_SKIN_NEWREPORT_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"gmai_request.yaml"
)
...
@@ -98,9 +147,19 @@ EYELIDS_DIARY_CARDS_DATA = os.path.join(BASE_DIR, "backend_auto/test_backend_dat
...
@@ -98,9 +147,19 @@ EYELIDS_DIARY_CARDS_DATA = os.path.join(BASE_DIR, "backend_auto/test_backend_dat
# AI变脸结果
# AI变脸结果
GMAI_PLASTIC_ANALYSIS_V3_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/gmai_data"
,
"plastic_analysis_v3.yaml"
)
GMAI_PLASTIC_ANALYSIS_V3_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/gmai_data"
,
"plastic_analysis_v3.yaml"
)
# 3D变脸获取参数
GMAI_PLASTIC_CHECCK_STYLE_CLASSTIFY_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/gmai_data"
,
"plastic_cheek_style_classify.yaml"
)
# 3D变脸
# 3D变脸
GMAI_PLASTIC_ANALYSIS_V2_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/gmai_data"
,
"plastic_analysis_v2.yaml"
)
GMAI_PLASTIC_ANALYSIS_V2_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/gmai_data"
,
"plastic_analysis_v2.yaml"
)
# 新版本我的美券列表
JANUS_PRODUCT_MY_LIST_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/janus_data"
,
"product_my_list.yaml"
)
# 我的订单列表
ORDERS_MY_V2_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"orders_request.yaml"
)
# 订单列表
ORDERS_MY_V2_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/orders_data"
,
"my_v2.yaml"
)
LOGIN_PASSWD
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/accounts_data"
,
"login_passwd.yaml"
)
LOGIN_PASSWD
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/accounts_data"
,
"login_passwd.yaml"
)
LOGIN_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"accounts_request.yaml"
)
LOGIN_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"accounts_request.yaml"
)
...
@@ -139,10 +198,11 @@ JANUS_MINE_GUESS_YOU_LIKE = os.path.join(BASE_DIR, "backend_auto/test_backend_da
...
@@ -139,10 +198,11 @@ JANUS_MINE_GUESS_YOU_LIKE = os.path.join(BASE_DIR, "backend_auto/test_backend_da
#消息列表
#消息列表
MY_CONVERSATION_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"my_conversation_request.yaml"
)
MY_CONVERSATION_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"my_conversation_request.yaml"
)
MY_CONVERSATION
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/my_conversation_data"
,
"my_conversation.yaml"
)
MY_CONVERSATION
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/my_conversation_data"
,
"my_conversation.yaml"
)
DETAIL_MESSAGEID
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/conversation_data"
,
"detail_messageid.yaml"
)
#消息
#消息
MESSAGE_READ_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"conversation_request.yaml"
)
MESSAGE_READ_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"conversation_request.yaml"
)
MESSAGE_READ
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/conversation_data"
,
"message_read.yaml"
)
MESSAGE_READ
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/conversation_data"
,
"message_read.yaml"
)
DETAIL_MESSAGEID
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/conversation_data"
,
"detail_messageid.yaml"
)
#消息页未读数
#消息页未读数
UNREAD_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"notification_request.yaml"
)
UNREAD_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"notification_request.yaml"
)
...
@@ -200,6 +260,14 @@ GIFT_LIST_DATA = os.path.join(BASE_DIR, "backend_auto/test_backend_data/hybrid_g
...
@@ -200,6 +260,14 @@ GIFT_LIST_DATA = os.path.join(BASE_DIR, "backend_auto/test_backend_data/hybrid_g
#商祥页-优惠券列表-领取
#商祥页-优惠券列表-领取
HYBRID_GET_GIFT_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"hybrid_get_gift_request.yaml"
)
HYBRID_GET_GIFT_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"hybrid_get_gift_request.yaml"
)
GET_GIFT_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/hybrid_get_gift_data"
,
"get_gift_data.yaml"
)
GET_GIFT_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/hybrid_get_gift_data"
,
"get_gift_data.yaml"
)
#商祥页-美券列表-我的美券点击-744版本及以后-新接口
PRODUCT_COUPON_MY_LIST
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/janus_data"
,
"product_coupon_my_list.yaml"
)
#商祥页-推荐商品列表
HYBRID_PROMOTION_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"hybrid_promotion_request.yaml"
)
RELATED_SERVICE_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/hybrid_promotion_data"
,
"related_service_data.yaml"
)
#次卡-确认订单
BEAUTY_CARD_CONFIRM
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/janus_data"
,
"beauty_card_confirm.yaml"
)
#捜索结果页-医生/医院tab
#捜索结果页-医生/医院tab
CONTENTV6_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"search_request.yaml"
)
CONTENTV6_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"search_request.yaml"
)
...
@@ -223,9 +291,7 @@ POLYMER_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "janus_r
...
@@ -223,9 +291,7 @@ POLYMER_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "janus_r
POLYMER
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/janus_data"
,
"polymer.yaml"
)
POLYMER
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/janus_data"
,
"polymer.yaml"
)
THIRD_PHONE_LOGIN_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"thirdphonelogin_request"
)
THIRD_PHONE_LOGIN_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"thirdphonelogin_request"
)
THIRD_PHONE_LOGIN
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/account_data"
,
"login_thirdphone"
)
THIRD_PHONE_LOGIN
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/account_data"
,
"login_thirdphone.yaml"
)
#医生医院sug列表
#医生医院sug列表
KEYWORDTIP_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"janus_request.yaml"
)
KEYWORDTIP_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"janus_request.yaml"
)
...
@@ -267,6 +333,46 @@ CONVERSATIONDIARY=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data
...
@@ -267,6 +333,46 @@ CONVERSATIONDIARY=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data
CONVERSATIONCOUPON
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web_data"
,
"conversation_coupon.yaml"
)
CONVERSATIONCOUPON
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web_data"
,
"conversation_coupon.yaml"
)
#更美次卡橱窗组件商品
VISUAL_BEAUTY_CARD_SERVICES_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"visual_beauty_card.yaml"
)
VISUAL_BEAUTY_CARD_SERVICES
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/visual_beauty_card_data"
,
"visual_beauty_card_services.yaml"
)
#次卡商品列表组件筛选器
BEAUTYCARD_FILTERS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"visual_beauty_card.yaml"
)
BEAUTYCARD_FILTERS
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/visual_beauty_card_data"
,
"beautycard_filters.yaml"
)
#次卡商品列表组件商品
BEAUTYCARD_SKUS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"visual_beauty_card.yaml"
)
BEAUTYCARD_SKUS
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/visual_beauty_card_data"
,
"beautycard_skus.yaml"
)
#百科详情页-项目聚合百科
SUBWIKI_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"hybrid_request.yaml"
)
SUBWIKI
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/hybrid_data"
,
"sub_wiki.yaml"
)
#百科详情页-项目百科
BASEWIKI_ITEM_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"hybrid_request.yaml"
)
BASEWIKI_ITEM
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/hybrid_data"
,
"basewiki_item.yaml"
)
#百科详情页-药品(仪器、材料)百科
BASEWIKI_PRODUCT_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"hybrid_request.yaml"
)
BASEWIKI_PRODUCT
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/hybrid_data"
,
"basewiki_product.yaml"
)
#百科详情页-品牌百科
BRAND_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"hybrid_request.yaml"
)
BRAND
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/hybrid_data"
,
"brand.yaml"
)
#普通美购提交订单页
PREVIEW_V1
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"settlement_request.yaml"
)
WECHAT_PAY
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"pay_request.yaml"
)
PREVIEW
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/settlement_data"
,
"preview_v1.yaml"
)
PAY_V1
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/settlement_data"
,
"pay_v1.yaml"
)
CREATE
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/settlement_data"
,
"create_v1.yaml"
)
PAY
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/settlement_data"
,
"pay.yaml"
)
SETTLEMENTDETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/settlement_data"
,
"settlement_detail.yaml"
)
WECHARTPAYDATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/pay_data"
,
"wechat_prepay.yaml"
)
ALIPAYDATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/pay_data"
,
"alipay_prepay.yaml"
)
JUMPDATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/pay_data"
,
"jump.yaml"
)
SETTLEMENTDELETE
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/settlement_data"
,
"settlement_delete.yaml"
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
print
(
"=========="
,
LIVEYAML_CONFIG
)
print
(
"=========="
,
LIVEYAML_CONFIG
)
run.py
View file @
2e83a3f6
from
test_backend_case.account_case
import
test_login_vfc
from
test_backend_case.account_case
import
test_login_vfc
from
test_backend_case.account_case
import
test_diary_data
import
pytest
import
pytest
...
...
test_backend_case/.DS_Store
View file @
2e83a3f6
No preview for this file type
test_backend_case/account_case/test_diary_data.py
View file @
2e83a3f6
...
@@ -3,24 +3,38 @@ import pytest
...
@@ -3,24 +3,38 @@ import pytest
from
ids_list
import
get_ids
from
ids_list
import
get_ids
import
path_setting
import
path_setting
from
in_common.base_request
import
BaseRequest
from
in_common.base_request
import
BaseRequest
from
all_backend_api.diary_data_request
import
diary_data_reqest
from
all_backend_api.diary_data_request
import
diary_data_req
u
est
class
TestD
IARYDATA
:
class
TestD
iaryData
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DIARY_DATA
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DIARY_DATA
)
diary_data_case
,
diary_data_data
=
get_ids
(
data
,
"diary_data"
)
diary_data_case
,
diary_data_data
=
get_ids
(
data
,
"diary_data"
)
@pytest.mark.parametrize
(
"param"
,
diary_data_data
,
ids
=
diary_data_case
)
@pytest.mark.parametrize
(
"param"
,
diary_data_data
,
ids
=
diary_data_case
)
def
test_diary_data
(
self
,
param
):
def
test_diary_data
(
self
,
param
):
# print(2)
# print(2)
r
=
diary_data_reqest
()
.
diary_data
(
param
[
"current_city_id"
],
param
[
"diary_referrer"
],
param
[
"sort"
],
param
[
"count"
],
param
[
"start_num"
])
r
=
diary_data_req
u
est
()
.
diary_data
(
param
[
"current_city_id"
],
param
[
"diary_referrer"
],
param
[
"sort"
],
param
[
"count"
],
param
[
"start_num"
])
# print(
1
)
# print(
r
)
if
r
[
"error"
]
==
0
:
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert"
]
assert
r
[
"error"
]
==
param
[
"assert"
]
# 先判断有没有日记,然后判断日记本里面需要的那些字段,如点赞字段,日记总数等,不传值,传空值
if
r
[
"data"
][
0
]:
assert
r
[
"data"
][
0
][
"post_date"
]
is
not
None
and
r
[
"data"
][
0
][
"post_date"
]
is
not
""
#c创建时间
assert
r
[
"data"
][
0
][
"diary_num"
]
is
not
None
and
r
[
"data"
][
0
][
"diary_num"
]
is
not
""
#日记总数
assert
r
[
"data"
][
0
][
"view_count"
]
is
not
None
and
r
[
"data"
][
0
][
"view_count"
]
is
not
""
#浏览次数
assert
r
[
"data"
][
0
][
"is_liked"
]
is
not
None
and
r
[
"data"
][
0
][
"is_liked"
]
is
not
""
#是否点赞
assert
r
[
"data"
][
0
][
"operation_day"
]
is
not
None
and
r
[
"data"
][
0
][
"operation_day"
]
is
not
""
#术后多少天
assert
r
[
"data"
][
0
][
"vote_count"
]
is
not
None
and
r
[
"data"
][
0
][
"vote_count"
]
is
not
""
#点赞总数
assert
r
[
"data"
][
0
][
"reply_count"
]
is
not
None
and
r
[
"data"
][
0
][
"reply_count"
]
is
not
""
#评论总数
assert
r
[
"data"
][
0
][
"id"
]
is
not
None
and
r
[
"data"
][
0
][
"id"
]
is
not
""
#日记贴id
# 判断评论列表里面的用户信息是否为空,如果有评论的话
if
r
[
"data"
][
0
][
"comments"
][
0
]:
assert
r
[
"data"
][
0
][
"comments"
][
0
][
"user_id"
]
is
not
None
and
r
[
"data"
][
0
][
"comments"
][
0
][
"user_id"
]
is
not
""
#用户id
assert
r
[
"data"
][
0
][
"comments"
][
0
][
"nick_name"
]
is
not
None
and
r
[
"data"
][
0
][
"comments"
][
0
][
"nick_name"
]
is
not
""
#用户名
assert
r
[
"data"
][
0
][
"comments"
][
0
][
"gm_url"
]
is
not
None
and
r
[
"data"
][
0
][
"comments"
][
0
][
"gm_url"
]
is
not
""
#点击头像跳转链接
# assert(r[""])
# assert(r[""])
if
r
[
"error"
]
==
1
:
if
r
[
"error"
]
==
1
:
assert
r
[
"error"
]
==
param
[
"assert"
]
assert
r
[
"error"
]
==
param
[
"assert"
]
test_backend_case/account_case/test_thirdPhone_login.py
View file @
2e83a3f6
...
@@ -14,7 +14,7 @@ class TestThirdPhoneLogin:
...
@@ -14,7 +14,7 @@ class TestThirdPhoneLogin:
def
test_thirdphone_login
(
self
,
param
):
def
test_thirdphone_login
(
self
,
param
):
r
=
thirdphonelogin_request
()
.
thirdphone_login
(
param
[
"version"
],
param
[
"phone_data"
],
param
[
"phone_from_type"
])
r
=
thirdphonelogin_request
()
.
thirdphone_login
(
param
[
"version"
],
param
[
"phone_data"
],
param
[
"phone_from_type"
])
print
(
'______'
,
r
)
if
r
[
"error"
]
==
1
:
if
r
[
"error"
]
==
1
:
assert
r
[
'message'
]
==
param
[
"assert"
]
assert
r
[
'message'
]
==
param
[
"assert"
]
\ No newline at end of file
test_backend_case/diary_case/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_case/diary_case/test_diary_albun.py
0 → 100644
View file @
2e83a3f6
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.diary_album_request
import
diary_album_request
class
TestDiaryAlbum
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DIARY_ALBUM
)
diary_album_case
,
diary_album_data
=
get_ids
(
data
,
"diary_album"
)
@pytest.mark.parametrize
(
"param"
,
diary_album_data
,
ids
=
diary_album_case
)
def
test_diary_album
(
self
,
param
):
r
=
diary_album_request
()
.
diary_album
()
# print(r)
if
r
[
"error"
]
==
0
:
assert
r
[
"data"
][
2
][
"images"
][
0
][
"is_cover"
]
==
param
[
"assert"
]
assert
r
[
"data"
][
0
][
"images"
][
0
][
"is_cover"
]
==
param
[
"assert2"
]
test_backend_case/diary_case/test_diary_cancel.py
0 → 100644
View file @
2e83a3f6
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.diary_cancelfavor_request
import
diary_cancelfavor_request
class
TestDiaryCancelfavor
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DIARY_CANCELFAVOR
)
diary_cancelfavor_case
,
diary_cancelfavor_data
=
get_ids
(
data
,
"diary_cancelfavor"
)
@pytest.mark.parametrize
(
"param"
,
diary_cancelfavor_data
,
ids
=
diary_cancelfavor_case
)
def
test_diary_cancelfavor
(
self
,
param
):
r
=
diary_cancelfavor_request
()
.
diary_cancelfavor
()
# print(r)
if
r
[
"error"
]
==
0
:
assert
r
[
"message"
]
==
param
[
"assert"
]
if
r
[
"error"
]
==
1
:
assert
r
[
"message"
]
==
param
[
"assert2"
]
#
test_backend_case/diary_case/test_diary_common_reply.py
0 → 100644
View file @
2e83a3f6
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.diary_common_reply_request
import
diary_common_reply_request
class
TestDiaryCommonReply
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DIARY_COMMON_REPLY
)
diary_common_reply_case
,
diary_common_reply_data
=
get_ids
(
data
,
"diary_common_reply"
)
@pytest.mark.parametrize
(
"param"
,
diary_common_reply_data
,
ids
=
diary_common_reply_case
)
def
test_diary_common_reply
(
self
,
param
):
# print(2)
r
=
diary_common_reply_request
()
.
diary_common_reply
(
param
[
"id"
],
param
[
"type"
])
# print(r)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert1"
]
# 先判断有没有评论,然后判断里面需要的那些字段,如点赞字段,评论总数等,不传值,传空值
if
r
[
"data"
][
"reply_data"
]:
assert
r
[
"data"
][
"reply_data"
][
0
][
"user_id"
]
is
not
None
and
r
[
"data"
][
"reply_data"
][
0
][
"user_id"
]
is
not
""
# 用户id
assert
r
[
"data"
][
"reply_data"
][
0
][
"user_portrait"
]
is
not
None
and
r
[
"data"
][
"reply_data"
][
0
][
"user_portrait"
]
is
not
""
# 用户头像
assert
r
[
"data"
][
"reply_data"
][
0
][
"gm_url"
]
is
not
None
and
r
[
"data"
][
"reply_data"
][
0
][
"gm_url"
]
is
not
""
# 头像跳转链接
assert
r
[
"data"
][
"reply_data"
][
0
][
"user_nickname"
]
is
not
None
and
r
[
"data"
][
"reply_data"
][
0
][
"user_nickname"
]
is
not
""
# 用户名
assert
r
[
"data"
][
"reply_data"
][
0
][
"content"
]
is
not
None
and
r
[
"data"
][
"reply_data"
][
0
][
"content"
]
is
not
""
# 评论内容
assert
r
[
"data"
][
"reply_data"
][
0
][
"reply_count"
]
is
not
None
and
r
[
"data"
][
"reply_data"
][
0
][
"reply_count"
]
is
not
""
# 评论总数
assert
r
[
"data"
][
"reply_data"
][
0
][
"reply_id"
]
is
not
None
and
r
[
"data"
][
"reply_data"
][
0
][
"reply_id"
]
is
not
""
# 评论id
assert
r
[
"data"
][
"reply_data"
][
0
][
"is_voted"
]
is
not
None
and
r
[
"data"
][
"reply_data"
][
0
][
"is_voted"
]
is
not
""
# 是否点赞
test_backend_case/diary_case/test_diary_isfavor.py
0 → 100644
View file @
2e83a3f6
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.diary_isfavor_request
import
diary_isfavor_request
class
TestDiaryIsfavor
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DIARY_ISFAVOR
)
diary_isfavor_case
,
diary_isfavor_data
=
get_ids
(
data
,
"diary_isfavor"
)
@pytest.mark.parametrize
(
"param"
,
diary_isfavor_data
,
ids
=
diary_isfavor_case
)
def
test_diary_isfavor
(
self
,
param
):
r
=
diary_isfavor_request
()
.
diary_isfavor
()
# print(r)
if
r
[
"error"
]
==
0
:
assert
r
[
"message"
]
==
param
[
"assert"
]
if
r
[
"error"
]
==
1
:
assert
r
[
"message"
]
==
param
[
"assert2"
]
# 收藏之后取消收藏
# r1 = diary_isfavor_request().diary_cancelfavor()
# if r["error"] == 0:
# assert r["error"] == param["assert"]
test_backend_case/diary_case/test_diary_operation.py
0 → 100644
View file @
2e83a3f6
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.diary_operation_request
import
diary_operation_request
class
TestDiaryOperation
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DIARY_OPERATION
)
diary_operation_case
,
diary_operation_data
=
get_ids
(
data
,
"diary_operation"
)
@pytest.mark.parametrize
(
"param"
,
diary_operation_data
,
ids
=
diary_operation_case
)
def
test_diary_operation
(
self
,
param
):
r
=
diary_operation_request
()
.
diary_operation
(
param
[
"diary_id"
],
param
[
"title"
],
param
[
"operation_timestamp"
],
param
[
"doctor_name"
],
param
[
"hospital_name"
])
result
=
diary_operation_request
()
.
diary_additional_info
()
if
result
[
"error"
]
==
1
:
assert
r
[
"message"
]
==
param
[
"assert"
]
# if r["error"] == 1:
# assert r["message"] ==param["assert2"]
#
test_backend_case/diary_case/test_diary_service.py
0 → 100644
View file @
2e83a3f6
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.diary_data_request
import
diary_data_request
class
TestDiaryService
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DIARY_DATA
)
diary_data_case
,
diary_data_data
=
get_ids
(
data
,
"diary_data"
)
@pytest.mark.parametrize
(
"param"
,
diary_data_data
,
ids
=
diary_data_case
)
def
test_diary_service
(
self
,
param
):
# print(2)
r
=
diary_data_request
()
.
diary_data
(
param
[
"current_city_id"
],
param
[
"diary_referrer"
],
param
[
"sort"
],
param
[
"count"
],
param
[
"start_num"
])
# print(r)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert"
]
# 先判断有没有日记,然后判断日记本里面需要的那些字段,如点赞字段,日记总数等,不传值,传空值
if
r
[
"data"
]:
assert
r
[
"data"
][
0
][
"post_date"
]
is
not
None
and
r
[
"data"
][
0
][
"post_date"
]
is
not
""
#c创建时间
assert
r
[
"data"
][
0
][
"diary_num"
]
is
not
None
and
r
[
"data"
][
0
][
"diary_num"
]
is
not
""
#日记总数
assert
r
[
"data"
][
0
][
"view_count"
]
is
not
None
and
r
[
"data"
][
0
][
"view_count"
]
is
not
""
#浏览次数
assert
r
[
"data"
][
0
][
"is_liked"
]
is
not
None
and
r
[
"data"
][
0
][
"is_liked"
]
is
not
""
#是否点赞
assert
r
[
"data"
][
0
][
"operation_day"
]
is
not
None
and
r
[
"data"
][
0
][
"operation_day"
]
is
not
""
#术后多少天
assert
r
[
"data"
][
0
][
"vote_count"
]
is
not
None
and
r
[
"data"
][
0
][
"vote_count"
]
is
not
""
#点赞总数
assert
r
[
"data"
][
0
][
"reply_count"
]
is
not
None
and
r
[
"data"
][
0
][
"reply_count"
]
is
not
""
#评论总数
assert
r
[
"data"
][
0
][
"id"
]
is
not
None
and
r
[
"data"
][
0
][
"id"
]
is
not
""
#日记贴id
# 判断评论列表里面的用户信息是否为空,先判断有没有评论
if
r
[
"data"
][
0
][
"comments"
]:
assert
r
[
"data"
][
0
][
"comments"
][
0
][
"user_id"
]
is
not
None
and
r
[
"data"
][
0
][
"comments"
][
0
][
"user_id"
]
is
not
""
#用户id
assert
r
[
"data"
][
0
][
"comments"
][
0
][
"nick_name"
]
is
not
None
and
r
[
"data"
][
0
][
"comments"
][
0
][
"nick_name"
]
is
not
""
#用户名
assert
r
[
"data"
][
0
][
"comments"
][
0
][
"gm_url"
]
is
not
None
and
r
[
"data"
][
0
][
"comments"
][
0
][
"gm_url"
]
is
not
""
#点击头像跳转链接
# assert(r[""])
if
r
[
"error"
]
==
1
:
assert
r
[
"error"
]
==
param
[
"assert"
]
test_backend_case/diary_case/test_diary_update.py
0 → 100644
View file @
2e83a3f6
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.diary_update_request
import
diary_update_request
class
TestDiaryUpdate
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DIARY_UPDATE
)
diary_update_case
,
diary_update_data
=
get_ids
(
data
,
"diary_update"
)
@pytest.mark.parametrize
(
"param"
,
diary_update_data
,
ids
=
diary_update_case
)
def
test_diary_update
(
self
,
param
):
r
=
diary_update_request
()
.
diary_update
(
param
[
"topic_list"
])
# print(r)
# if r["error"] == 0:
# assert r["message"] == param["assert"]
if
r
[
"error"
]
==
1
:
assert
r
[
"message"
]
==
param
[
"assert"
]
# 收藏之后取消收藏
# r1 = diary_isfavor_request().diary_cancelfavor()
# if r["error"] == 0:
# assert r["error"] == param["assert"]
test_backend_case/diary_case/test_diary_vote.py
0 → 100644
View file @
2e83a3f6
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.diary_vote_request
import
diary_vote_request
class
TestDiaryVote
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DIARY_VOTE
)
diary_vote_case
,
diary_vote_data
=
get_ids
(
data
,
"diary_vote"
)
@pytest.mark.parametrize
(
"param"
,
diary_vote_data
,
ids
=
diary_vote_case
)
def
test_diary_vote
(
self
,
param
):
# print(111)
# print(diary_vote_case)
r
=
diary_vote_request
()
.
diary_detail
(
param
[
"topic_id"
])
# print(r)
# 可以多加一个d代表详情页
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert1"
]
# 如果没有点过赞,就先校验点赞之后再取消点赞。【最后保持取消点赞的状态】
if
not
r
[
"data"
][
"data"
][
"is_liked"
]:
# print(222)
vote
=
diary_vote_request
()
.
diary_vote
(
param
[
"id"
])
assert
vote
[
"error"
]
==
0
# 校验二次点赞无效
vote
=
diary_vote_request
()
.
diary_vote
(
param
[
"id"
])
assert
vote
[
"message"
]
==
param
[
"assert3"
]
assert
vote
[
"error"
]
==
1
# 取消点赞,回到取消点赞的状态
canclevote
=
diary_vote_request
()
.
diary_canclevote
(
param
[
"id"
])
assert
canclevote
[
"error"
]
==
0
else
:
# 如果是已经点过赞的状态就直接取消点赞
# print(111)
canclevote
=
diary_vote_request
()
.
diary_canclevote
(
param
[
"id"
])
assert
canclevote
[
"error"
]
==
0
# if r["error"] == 1:
# assert r["message"] ==param["assert2"]
# 收藏之后取消收藏
# r1 = diary_isfavor_request().diary_cancelfavor()
# if r["error"] == 0:
# assert r["error"] == param["assert"]
test_backend_case/face_case/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_case/face_case/test_diary_cards.py
0 → 100644
View file @
2e83a3f6
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.face_request
import
face_request
class
TestDiaryCards
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
FACE_DIARY_CARDS_DATA
)
FaceDiaryCards_case
,
FaceDiaryCards_data
=
get_ids
(
data
,
"diary_cards"
)
@pytest.mark.parametrize
(
"param"
,
FaceDiaryCards_data
,
ids
=
FaceDiaryCards_case
)
def
test_diary_cards
(
self
,
param
):
r
=
face_request
()
.
diarys_cards
(
param
[
"facial_type2tag_names"
])
if
r
[
"error"
]
==
0
:
feed
=
r
[
"data"
]
assert
len
(
feed
)
==
param
[
"assert_feed_nums"
]
for
key
in
feed
:
diary_cards
=
feed
[
key
]
assert
diary_cards
[
"__source"
]
==
"diary"
assert
diary_cards
[
"title"
]
is
not
None
assert
diary_cards
[
"desc"
]
is
not
None
assert
diary_cards
[
"diary"
]
is
not
None
test_backend_case/gmai_case/test_plastic_cheek_style_classify.py
0 → 100644
View file @
2e83a3f6
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.gmai_request
import
gmai_request
# 3D变脸
class
TestPlasticChecckStyleClasstify
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
GMAI_PLASTIC_CHECCK_STYLE_CLASSTIFY_DATA
)
plasticchecckstyleclasstify_case
,
plasticchecckstyleclasstify_data
=
get_ids
(
data
,
"plastic_cheek_style_classify"
)
@pytest.mark.parametrize
(
"param"
,
plasticchecckstyleclasstify_data
,
ids
=
plasticchecckstyleclasstify_case
)
def
test_plastic_cheek_style_classify
(
self
,
param
):
r
=
gmai_request
()
.
plastic_cheek_style_classify
(
param
[
"version"
])
if
r
[
"error"
]
==
0
:
classifies
=
r
[
"data"
][
"classifies"
]
assert
len
(
classifies
)
>
param
[
"assert"
]
test_backend_case/hybrid_case/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_case/hybrid_case/test_basewiki_item.py
0 → 100644
View file @
2e83a3f6
import
pytest
from
bs4
import
BeautifulSoup
import
path_setting
from
all_backend_api.hybrid_request
import
hybrid_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
#百科详情页-项目百科,水光针
class
TestBaseWikiItem
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BASEWIKI_ITEM
)
basewiki_item_case
,
basewiki_item_data
=
get_ids
(
data
,
"basewiki_item"
)
@pytest.mark.parametrize
(
"param"
,
basewiki_item_data
,
ids
=
basewiki_item_case
)
def
test_basewiki_item
(
self
,
param
):
r
=
hybrid_request
()
.
basewiki_item
(
param
[
"version"
])
soup
=
BeautifulSoup
(
r
,
'lxml'
)
# html.parser是解析器,也可是lxml
assert
soup
.
title
.
string
==
param
[
"assert"
]
print
(
'进入项目百科-水光针的百科详情页'
)
\ No newline at end of file
test_backend_case/hybrid_case/test_basewiki_product.py
0 → 100644
View file @
2e83a3f6
import
pytest
from
bs4
import
BeautifulSoup
import
path_setting
from
all_backend_api.hybrid_request
import
hybrid_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
#百科详情页-药品(仪器、材料)百科,菲洛嘉
class
TestBaseWikiProduct
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BASEWIKI_PRODUCT
)
basewiki_product_case
,
basewiki_product_data
=
get_ids
(
data
,
"basewiki_product"
)
@pytest.mark.parametrize
(
"param"
,
basewiki_product_data
,
ids
=
basewiki_product_case
)
def
test_basewiki_product
(
self
,
param
):
r
=
hybrid_request
()
.
basewiki_product
(
param
[
"version"
])
soup
=
BeautifulSoup
(
r
,
'lxml'
)
# html.parser是解析器,也可是lxml
assert
soup
.
title
.
string
==
param
[
"assert"
]
print
(
'进入项目百科-菲洛嘉的百科详情页'
)
\ No newline at end of file
test_backend_case/hybrid_case/test_brand.py
0 → 100644
View file @
2e83a3f6
import
pytest
from
bs4
import
BeautifulSoup
import
path_setting
from
all_backend_api.hybrid_request
import
hybrid_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
#百科详情页-品牌百科,得玛莎
class
TestBrand
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BRAND
)
brand_case
,
brand_data
=
get_ids
(
data
,
"brand"
)
@pytest.mark.parametrize
(
"param"
,
brand_data
,
ids
=
brand_case
)
def
test_brand
(
self
,
param
):
r
=
hybrid_request
()
.
brand
(
param
[
"version"
])
soup
=
BeautifulSoup
(
r
,
'lxml'
)
# html.parser是解析器,也可是lxml
assert
soup
.
title
.
string
==
param
[
"assert"
]
print
(
'进入项目百科-得玛莎的百科详情页'
)
\ No newline at end of file
test_backend_case/hybrid_case/test_sub_wiki.py
0 → 100644
View file @
2e83a3f6
import
pytest
from
bs4
import
BeautifulSoup
import
path_setting
from
all_backend_api.hybrid_request
import
hybrid_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
#百科详情页-项目聚合百科,玻尿酸
class
TestSubWiki
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SUBWIKI
)
subwiki_case
,
subwiki_data
=
get_ids
(
data
,
"sub_wiki"
)
@pytest.mark.parametrize
(
"param"
,
subwiki_data
,
ids
=
subwiki_case
)
def
test_sub_wiki
(
self
,
param
):
r
=
hybrid_request
()
.
sub_wiki
(
param
[
"version"
],
param
[
"current_city_id"
])
soup
=
BeautifulSoup
(
r
,
'lxml'
)
# html.parser是解析器,也可是lxml
assert
soup
.
title
.
string
==
param
[
"assert"
]
print
(
'进入项目聚合百科-玻尿酸的百科详情页'
)
\ No newline at end of file
test_backend_case/hybrid_promotion_case/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_case/hybrid_promotion_case/test_related_service_data.py
0 → 100644
View file @
2e83a3f6
import
pytest
from
all_backend_api.hybrid_promotion_request
import
hybrid_promotion_request
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
class
TestTelatedServiceData
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
RELATED_SERVICE_DATA
)
related_service_data_case
,
related_service_data_data
=
get_ids
(
data
,
"related_service_data"
)
@pytest.mark.parametrize
(
"param"
,
related_service_data_data
,
ids
=
related_service_data_case
)
def
test_related_service_data
(
self
,
param
):
r
=
hybrid_promotion_request
()
.
related_service_data
(
param
[
"service_id"
],
param
[
"page"
])
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert_error"
]
test_backend_case/janus_case/test_beauty_card_confirm.py
0 → 100644
View file @
2e83a3f6
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
TestBeautyCardConfirm
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_CONFIRM
)
beauty_card_confirm_case
,
beauty_card_confirm_data
=
get_ids
(
data
,
"beauty_card_confirm"
)
@pytest.mark.parametrize
(
"param"
,
beauty_card_confirm_data
,
ids
=
beauty_card_confirm_case
)
def
test_beauty_card_confirm
(
self
,
param
):
r
=
janus_request
()
.
beauty_card_confirm
(
param
[
"sku_id"
],
param
[
"number"
],
param
[
"use_bc_coupon"
],
param
[
"bc_coupon_id"
])
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert_error"
]
test_backend_case/janus_case/test_product_coupon_my_list.py
0 → 100644
View file @
2e83a3f6
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
TestProductCouponMyList
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PRODUCT_COUPON_MY_LIST
)
product_coupon_my_list_case
,
product_coupon_my_list_data
=
get_ids
(
data
,
"product_coupon_my_list"
)
@pytest.mark.parametrize
(
"param"
,
product_coupon_my_list_data
,
ids
=
product_coupon_my_list_case
)
def
test_product_coupon_my_list
(
self
,
param
):
r
=
janus_request
()
.
product_coupon_my_list
(
param
[
"start_num"
],
param
[
"tab_id"
])
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert_error"
]
test_backend_case/janus_case/test_product_my_list.py
0 → 100644
View file @
2e83a3f6
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
TestProductMyLiSt
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
JANUS_PRODUCT_MY_LIST_DATA
)
product_my_list_detail_case
,
product_my_list_detail_data
=
get_ids
(
data
,
"product_my_list"
)
@pytest.mark.parametrize
(
"param"
,
product_my_list_detail_data
,
ids
=
product_my_list_detail_case
)
def
test_product_my_list
(
self
,
param
):
r
=
janus_request
()
.
product_my_list
(
param
[
"start_num"
],
param
[
"tab_id"
])
assert
r
[
"error"
]
==
0
coupon_list
=
r
[
"data"
][
"coupon_list"
]
print
(
len
(
coupon_list
))
assert
0
<=
len
(
coupon_list
)
<=
20
if
len
(
coupon_list
)
<
10
:
assert
r
[
"data"
][
"no_more_data"
]
is
True
test_backend_case/orders_case/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_case/orders_case/test_orders_my_v2_waituse.py
0 → 100644
View file @
2e83a3f6
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.orders_request
import
orders_request
class
TestOrdersMyV2Waituse
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ORDERS_MY_V2_DATA
)
my_order_waituse_case
,
my_order_waituse_data
=
get_ids
(
data
,
"waituse"
)
@pytest.mark.parametrize
(
"param"
,
my_order_waituse_data
,
ids
=
my_order_waituse_case
)
def
test_orders_waituse
(
self
,
param
):
r
=
orders_request
()
.
my_v2
(
param
[
"start_num"
],
param
[
"status"
],
param
[
"version"
])
if
r
[
"error"
]
==
0
:
orders
=
r
[
"data"
][
"orders"
]
for
order
in
orders
:
# 这个是次卡
if
order
[
"type"
]
==
4
:
# 订单信息
order_id
=
order
[
"order"
][
"order_id"
]
order_status
=
order
[
"order"
][
"order_status"
][
"status"
]
order_statust
=
order
[
"order"
][
"order_status"
][
"text"
]
gm_url
=
order
[
"gm_url"
]
print
(
order_id
,
order_status
,
order_statust
,
gm_url
)
assert
order_status
==
param
[
"beauty_card_order_status"
]
assert
order_statust
==
param
[
"beauty_card_order_statust"
]
assert
gm_url
==
param
[
"beauty_card_order_gmurl"
]
.
format
(
order_id
)
# 按钮信息,预约
beauty_card_payment_order_wait_used_title
=
order
[
"buttons"
][
0
][
"title"
]
beauty_card_payment_order_wait_used_url
=
order
[
"buttons"
][
0
][
"url"
]
assert
beauty_card_payment_order_wait_used_title
==
param
[
"beauty_card_button_title"
]
assert
beauty_card_payment_order_wait_used_url
==
param
[
"beauty_card_button_gmurl"
]
.
format
(
order_id
)
# 7.44.0加的领取面膜按钮
beauty_card_free_service_title
=
order
[
"buttons"
][
1
][
"title"
]
assert
beauty_card_free_service_title
==
param
[
"beauty_card_button_mianmo_title"
]
# 普通美购订单
if
order
[
"type"
]
==
0
:
# 订单信息
order_id
=
order
[
"order"
][
"order_id"
]
order_status
=
order
[
"order"
][
"order_status"
][
"status"
]
order_statust
=
order
[
"order"
][
"order_status"
][
"text"
]
assert
order_status
==
param
[
"putong_card_order_status"
]
assert
order_statust
==
param
[
"putong_card_order_statust"
]
print
(
order_status
,
order_statust
)
test_backend_case/pay_case/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_case/pay_case/test_alipay_prepay.py
0 → 100644
View file @
2e83a3f6
import
pytest
import
path_setting
from
all_backend_api.pay_request
import
pay_request
from
all_backend_api.settlement_request
import
settlement_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestAlipayPay
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ALIPAYDATA
)
alipay_case
,
alipay_data
=
get_ids
(
data
,
"alipay_prepay"
)
@pytest.mark.parametrize
(
"param"
,
alipay_data
,
ids
=
alipay_case
)
def
test_alipay_prepay
(
self
,
param
):
create_resp
=
settlement_request
()
.
create_v1
(
param
[
"service_item_id"
],
param
[
"number"
],
param
[
"platform_coupon_id"
],
param
[
"use_point"
],
param
[
"is_doctor_see"
],
param
[
"doctor_coupon_id"
],
param
[
"insurance_info"
],
param
[
"is_create_groupbuy"
])
settlement_id
=
create_resp
[
"data"
][
"id"
]
r
=
pay_request
()
.
alipay_prepay
(
settlement_id
,
param
[
"version"
],
param
[
"is_huabei"
],
param
[
"huabei_period"
])
print
(
r
)
assert
r
[
"error"
]
==
param
[
"assert"
]
test_backend_case/pay_case/test_jump.py
0 → 100644
View file @
2e83a3f6
import
pytest
import
path_setting
from
all_backend_api.pay_request
import
pay_request
from
all_backend_api.settlement_request
import
settlement_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestJump
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
JUMPDATA
)
jump_case
,
jump_data
=
get_ids
(
data
,
"jump"
)
@pytest.mark.parametrize
(
"param"
,
jump_data
,
ids
=
jump_case
)
def
test_jump
(
self
,
param
):
create_resp
=
settlement_request
()
.
create_v1
(
param
[
"service_item_id"
],
param
[
"number"
],
param
[
"platform_coupon_id"
],
param
[
"use_point"
],
param
[
"is_doctor_see"
],
param
[
"doctor_coupon_id"
],
param
[
"insurance_info"
],
param
[
"is_create_groupbuy"
])
settlement_id
=
create_resp
[
"data"
][
"id"
]
r
=
pay_request
()
.
jump
(
settlement_id
)
print
(
r
)
assert
r
[
"error"
]
==
param
[
"assert"
]
test_backend_case/pay_case/test_wechat_prepay.py
0 → 100644
View file @
2e83a3f6
import
pytest
import
path_setting
from
all_backend_api.pay_request
import
pay_request
from
all_backend_api.settlement_request
import
settlement_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestWechatPrepay
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
WECHARTPAYDATA
)
wechart_case
,
wechart_data
=
get_ids
(
data
,
"wechart_pay"
)
@pytest.mark.parametrize
(
"param"
,
wechart_data
,
ids
=
wechart_case
)
def
test_wechart_prepay
(
self
,
param
):
create_resp
=
settlement_request
()
.
create_v1
(
param
[
"service_item_id"
],
param
[
"number"
],
param
[
"platform_coupon_id"
],
param
[
"use_point"
],
param
[
"is_doctor_see"
],
param
[
"doctor_coupon_id"
],
param
[
"insurance_info"
],
param
[
"is_create_groupbuy"
])
settlement_id
=
create_resp
[
"data"
][
"id"
]
r
=
pay_request
()
.
wechat_prepay
(
settlement_id
)
print
(
r
)
assert
r
[
"error"
]
==
param
[
"assert"
]
test_backend_case/personal_case/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_case/personal_case/test_personal_recommends.py
0 → 100644
View file @
2e83a3f6
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.personal_recommends_request
import
personal_recommends_request
class
TestPersonalRecommends
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PERSONAL_RECOMMENDS
)
personal_recommends_case
,
personal_recommends_data
=
get_ids
(
data
,
"personal_recommends"
)
@pytest.mark.parametrize
(
"param"
,
personal_recommends_data
,
ids
=
personal_recommends_case
)
def
test_personal_recommends
(
self
,
param
):
r
=
personal_recommends_request
()
.
personal_recommends
(
param
[
"current_city_id"
],
param
[
"id"
],
param
[
"from_type"
]
)
# print(r)
assert
r
[
"error"
]
==
param
[
"assert_error"
]
# assert r["data"]["text"] == param["assert_text"]
# if r["error"] == 21001:
# assert r["message"] == param["assert_message1"]
\ No newline at end of file
test_backend_case/settlement_case/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_case/settlement_case/test_create_v1.py
0 → 100644
View file @
2e83a3f6
import
pytest
import
path_setting
from
all_backend_api.settlement_request
import
settlement_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestCreateV1
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CREATE
)
create_case
,
create_data
=
get_ids
(
data
,
"create_v1"
)
print
(
create_data
)
@pytest.mark.parametrize
(
"param"
,
create_data
,
ids
=
create_case
)
def
test_create_v1
(
self
,
param
):
r
=
settlement_request
()
.
create_v1
(
param
[
"service_item_id"
],
param
[
"number"
],
param
[
"platform_coupon_id"
],
param
[
"use_point"
],
param
[
"is_doctor_see"
],
param
[
"doctor_coupon_id"
],
param
[
"insurance_info"
],
param
[
"is_create_groupbuy"
])
print
(
r
)
assert
r
[
"error"
]
==
param
[
"assert"
]
test_backend_case/settlement_case/test_pay.py
0 → 100644
View file @
2e83a3f6
import
pytest
import
path_setting
from
all_backend_api.settlement_request
import
settlement_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestPay
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PAY
)
pay_case
,
pay_data
=
get_ids
(
data
,
"pay"
)
@pytest.mark.parametrize
(
"param"
,
pay_data
,
ids
=
pay_case
)
def
test_pay
(
self
,
param
):
pay_r
=
settlement_request
()
.
create_v1
(
param
[
"service_item_id"
],
param
[
"number"
],
param
[
"platform_coupon_id"
],
param
[
"use_point"
],
param
[
"is_doctor_see"
],
param
[
"doctor_coupon_id"
],
param
[
"insurance_info"
],
param
[
"is_create_groupbuy"
])
id
=
pay_r
[
"data"
][
"id"
]
r
=
settlement_request
()
.
pay
(
id
)
assert
r
[
"error"
]
==
param
[
"assert"
]
test_backend_case/settlement_case/test_pay_v1.py
0 → 100644
View file @
2e83a3f6
import
pytest
import
path_setting
from
all_backend_api.settlement_request
import
settlement_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestPayV1
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PAY_V1
)
pay_case
,
pay_data
=
get_ids
(
data
,
"pay_v1"
)
@pytest.mark.parametrize
(
"param"
,
pay_data
,
ids
=
pay_case
)
def
test_pay_v1
(
self
,
param
):
r
=
settlement_request
()
.
pay_v1
(
param
[
"actual_pay"
],
param
[
"payment_final_price"
],
param
[
"is_contains_groupbuy_order"
],
param
[
"mul_orders_number"
])
print
(
r
)
assert
r
[
"error"
]
==
param
[
"assert"
]
test_backend_case/settlement_case/test_preview_v1.py
0 → 100644
View file @
2e83a3f6
import
pytest
import
path_setting
from
all_backend_api.settlement_request
import
settlement_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestPreviewV1
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PREVIEW
)
preview_case
,
preview_data
=
get_ids
(
data
,
"preview_v1"
)
@pytest.mark.parametrize
(
"param"
,
preview_data
,
ids
=
preview_case
)
def
test_preview_v1
(
self
,
param
):
r
=
settlement_request
()
.
preview_v1
(
param
[
"current_city_id"
],
param
[
"service_item_id"
],
param
[
"number"
],
param
[
"use_platform_coupon"
],
param
[
"use_doctor_coupon"
],
param
[
"use_coupon_grey"
],
param
[
"is_create_groupbuy"
])
print
(
r
)
assert
r
[
"error"
]
==
param
[
"assert"
]
test_backend_case/settlement_case/test_settlement_delete.py
0 → 100644
View file @
2e83a3f6
import
pytest
import
path_setting
from
all_backend_api.orders_request
import
orders_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
from
all_backend_api.settlement_request
import
settlement_request
class
TestSettlementDelete
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SETTLEMENTDELETE
)
delete_case
,
delete_data
=
get_ids
(
data
,
"settlement_delete"
)
@pytest.mark.parametrize
(
"param"
,
delete_data
,
ids
=
delete_case
)
def
test_settlement_delete
(
self
,
param
):
r
=
orders_request
()
.
my_v2
(
param
[
"start_num"
],
param
[
"status"
],
param
[
"version"
])
for
item
in
r
[
"data"
][
"orders"
]:
item
=
item
break
# print("999999999999999",item["settlement_id"])
if
item
[
"settlement_status"
]
==
"0"
:
id
=
item
[
"settlement_id"
]
r
=
settlement_request
()
.
delete
(
id
,
param
[
"cancel_reason_value"
])
assert
r
[
"message"
]
==
param
[
"assert"
]
else
:
print
(
"无可取消订单"
)
# print(r)
# if r["error"] == 0:
# assert r["error"] == param["assert"]
# else:
# assert r["error"] == param["assert"]
test_backend_case/settlement_case/test_settlement_detail.py
0 → 100644
View file @
2e83a3f6
import
pytest
import
path_setting
from
all_backend_api.settlement_request
import
settlement_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestSettlementDetail
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SETTLEMENTDETAIL
)
detail_case
,
detail_data
=
get_ids
(
data
,
"settlement_detail"
)
@pytest.mark.parametrize
(
"param"
,
detail_data
,
ids
=
detail_case
)
def
test_settlement_detail
(
self
,
param
):
r
=
settlement_request
()
.
detail
(
param
[
"id"
])
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert"
]
else
:
assert
r
[
"error"
]
==
param
[
"assert"
]
test_backend_case/tractate_case/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_case/tractate_case/test_tractate_detail.py
0 → 100644
View file @
2e83a3f6
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.tractate_detail_request
import
tractate_detail_request
class
TestTractateDetail
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TRACTATE_DETAIL
)
tractate_detail_case
,
tractate_detail_data
=
get_ids
(
data
,
"tractate_detail"
)
@pytest.mark.parametrize
(
"param"
,
tractate_detail_data
,
ids
=
tractate_detail_case
)
def
test_tractate_detail
(
self
,
param
):
r
=
tractate_detail_request
()
.
tractate_detail
(
param
[
"current_city_id"
],
param
[
"tractate_id"
],
param
[
"data_type"
]
)
# print(r)
assert
r
[
"error"
]
==
param
[
"assert_error"
]
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert_error"
]
# 先判断有没有日记,然后判断日记本里面需要的那些字段,如点赞字段,日记总数等,不传值,传空值
if
r
[
"data"
][
"tractate_list"
]:
assert
r
[
"data"
][
"tractate_list"
][
"is_favored"
]
is
not
None
and
r
[
"data"
][
"tractate_list"
][
"is_favored"
]
is
not
""
#是否收藏
assert
r
[
"data"
][
"tractate_list"
][
"is_following"
]
is
not
None
and
r
[
"data"
][
"tractate_list"
][
"is_following"
]
is
not
""
#是否关注
assert
r
[
"data"
][
"tractate_list"
][
"data_type"
]
is
not
None
and
r
[
"data"
][
"tractate_list"
][
"data_type"
]
is
not
""
#模版类型
assert
r
[
"data"
][
"tractate_list"
][
"is_voted"
]
is
not
None
and
r
[
"data"
][
"tractate_list"
][
"is_voted"
]
is
not
""
#是否点赞
assert
r
[
"data"
][
"tractate_list"
][
"favor_amount"
]
is
not
None
and
r
[
"data"
][
"tractate_list"
][
"favor_amount"
]
is
not
""
#收藏总数
assert
r
[
"data"
][
"tractate_list"
][
"vote_amount"
]
is
not
None
and
r
[
"data"
][
"tractate_list"
][
"vote_amount"
]
is
not
""
#点赞总数
assert
r
[
"data"
][
"tractate_list"
][
"reply_amount"
]
is
not
None
and
r
[
"data"
][
"tractate_list"
][
"reply_amount"
]
is
not
""
#评论总数
assert
r
[
"data"
][
"tractate_list"
][
"tractate_id"
]
is
not
None
and
r
[
"data"
][
"tractate_list"
][
"tractate_id"
]
is
not
""
#贴子id
# 判断评论列表里面返回的用户信息是否为空,先判断有没有评论
if
r
[
"data"
][
"tractate_list"
][
"reply"
]:
assert
r
[
"data"
][
"tractate_list"
][
"reply"
][
0
][
"user_id"
]
is
not
None
and
r
[
"data"
][
"tractate_list"
][
"reply"
][
0
][
"user_id"
]
is
not
""
#用户id
assert
r
[
"data"
][
"tractate_list"
][
"reply"
][
0
][
"user_name"
]
is
not
None
and
r
[
"data"
][
"tractate_list"
][
"reply"
][
0
][
"user_name"
]
is
not
""
#用户名
assert
r
[
"data"
][
"tractate_list"
][
"reply"
][
0
][
"user_portrait"
]
is
not
None
and
r
[
"data"
][
"tractate_list"
][
"reply"
][
0
][
"user_portrait"
]
is
not
""
#点击头像跳转链接
# # assert(r[""])
# if r["error"] == 1:
# assert r["error"] == param["assert_error"]
# assert r["data"]["text"] == param["assert_text"]
# if r["error"] == 21001:
# assert r["message"] == param["assert_message1"]
\ No newline at end of file
test_backend_case/visual_beauty_card_case/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_case/visual_beauty_card_case/test_beautycard_filters.py
0 → 100644
View file @
2e83a3f6
import
pytest
import
path_setting
from
all_backend_api.visual_beauty_card
import
visual_beauty_card_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
#次卡商品列表筛选器接口
class
TestBeautyCardFilters
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTYCARD_FILTERS
)
beautycard_filters_case
,
beautycard_filters_data
=
get_ids
(
data
,
"beautycard_filters"
)
@pytest.mark.parametrize
(
"param"
,
beautycard_filters_data
,
ids
=
beautycard_filters_case
)
def
test_beautycard_filters
(
self
,
param
):
print
(
'次卡商品列表筛选器'
)
r
=
visual_beauty_card_request
()
.
beautycard_filters
(
param
[
"unit_id"
],
param
[
"current_city_id"
],
param
[
"version"
])
if
r
[
"data"
]:
print
(
'次卡商品列表筛选器下拉列表有值'
)
assert
len
(
r
[
"data"
][
"field"
])
!=
param
[
"assert"
]
assert
len
(
r
[
"data"
][
"areas"
])
!=
param
[
"assert"
]
assert
len
(
r
[
"data"
][
"order"
])
!=
param
[
"assert"
]
\ No newline at end of file
test_backend_case/visual_beauty_card_case/test_beautycard_skus.py
0 → 100644
View file @
2e83a3f6
import
pytest
import
path_setting
from
all_backend_api.visual_beauty_card
import
visual_beauty_card_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
#次卡商品列表组件商品
class
TestBeautyCardSkus
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTYCARD_SKUS
)
beautycard_skus_case
,
beautycard_skus_data
=
get_ids
(
data
,
"beautycard_skus"
)
@pytest.mark.parametrize
(
"param"
,
beautycard_skus_data
,
ids
=
beautycard_skus_case
)
def
test_beautycard_skus
(
self
,
param
):
print
(
'次卡商品列表组件商品'
)
r
=
visual_beauty_card_request
()
.
beautycard_skus
(
param
[
"unit_id"
],
param
[
"tag_id"
],
param
[
"area"
],
param
[
"sort_type"
],
param
[
"page"
],
param
[
"page_size"
])
if
r
[
"data"
]:
print
(
'次卡商品列表组件有商品召回'
)
assert
len
(
r
[
"data"
][
"beautycards"
])
!=
param
[
"assert"
]
\ No newline at end of file
test_backend_case/visual_beauty_card_case/test_visual_beauty_card_services.py
0 → 100644
View file @
2e83a3f6
import
pytest
import
path_setting
from
all_backend_api.visual_beauty_card
import
visual_beauty_card_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
#次卡橱窗商品
class
TestVisualBeautyCardServices
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
VISUAL_BEAUTY_CARD_SERVICES
)
visual_beauty_card_services_case
,
visual_beauty_card_services_data
=
get_ids
(
data
,
"visual_beauty_card_services"
)
@pytest.mark.parametrize
(
"param"
,
visual_beauty_card_services_data
,
ids
=
visual_beauty_card_services_case
)
def
test_visual_beauty_card_services
(
self
,
param
):
print
(
'次卡橱窗'
)
r
=
visual_beauty_card_request
()
.
visual_beauty_card_services
(
param
[
"unit_id"
],
param
[
"current_city_id"
],
param
[
"page"
],
param
[
"page_size"
],
param
[
"version"
])
if
r
[
"data"
][
"beautycards"
]:
print
(
'次卡橱窗有商品'
)
assert
len
(
r
[
"data"
][
"beautycards"
])
!=
param
[
"assert"
]
\ No newline at end of file
test_backend_data/account_data/login_thirdphone
→
test_backend_data/account_data/login_thirdphone
.yaml
View file @
2e83a3f6
login_thirdphone
:
login_thirdphone
:
- case: "无版本号手机号一键登录case"
-
case
:
"
无版本号手机号一键登录case"
phone_data
:
'
{
phone_data
:
'
{
"token"
:
"A4-lVEf_Fk2ekkxSFgSZ59yD6bPaIxHWzJfsGgaEBDrbZzFyxMueOODIoBeXXQuHU8REjG42jvyjQa2a3rkDm8ufKlI8DL3ny2FfxnUrnuQOycWRaHKN3664onbOetr54dvb4wkVaV7X33yBlw7u_ZCNqIOwTnRQ9kPgHDBpvyN4NTdYYf2tJWhF4VeiVOqc7OiRz-Nzt08AUvbtWpw6sPQjA==",
"token"
:
"A4-lVEf_Fk2ekkxSFgSZ59yD6bPaIxHWzJfsGgaEBDrbZzFyxMueOODIoBeXXQuHU8REjG42jvyjQa2a3rkDm8ufKlI8DL3ny2FfxnUrnuQOycWRaHKN3664onbOetr54dvb4wkVaV7X33yBlw7u_ZCNqIOwTnRQ9kPgHDBpvyN4NTdYYf2tJWhF4VeiVOqc7OiRz-Nzt08AUvbtWpw6sPQjA==",
"appId"
:
"xK5yFMfJ"
"appId"
:
"xK5yFMfJ"
...
@@ -9,7 +10,8 @@ login_thirdphone:
...
@@ -9,7 +10,8 @@ login_thirdphone:
version
:
version
:
assert
:
"
获取手机号失败"
assert
:
"
获取手机号失败"
- case: "大于7.32手机号一键登录case"
-
case
:
"
大于7.32手机号一键登录case"
phone_data
:
'
{
phone_data
:
'
{
"token"
:
"A4-lVEf_Fk2ekkxSFgSZ59yD6bPaIxHWzJfsGgaEBDrbZzFyxMueOODIoBeXXQuHU8REjG42jvyjQa2a3rkDm8ufKlI8DL3ny2FfxnUrnuQOycWRaHKN3664onbOetr54dvb4wkVaV7X33yBlw7u_ZCNqIOwTnRQ9kPgHDBpvyN4NTdYYf2tJWhF4VeiVOqc7OiRz-Nzt08AUvbtWpw6sPQjA==",
"token"
:
"A4-lVEf_Fk2ekkxSFgSZ59yD6bPaIxHWzJfsGgaEBDrbZzFyxMueOODIoBeXXQuHU8REjG42jvyjQa2a3rkDm8ufKlI8DL3ny2FfxnUrnuQOycWRaHKN3664onbOetr54dvb4wkVaV7X33yBlw7u_ZCNqIOwTnRQ9kPgHDBpvyN4NTdYYf2tJWhF4VeiVOqc7OiRz-Nzt08AUvbtWpw6sPQjA==",
"appId"
:
"xK5yFMfJ"
"appId"
:
"xK5yFMfJ"
...
@@ -18,7 +20,8 @@ login_thirdphone:
...
@@ -18,7 +20,8 @@ login_thirdphone:
version
:
"
7.43.0"
version
:
"
7.43.0"
assert
:
"
获取手机号失败"
assert
:
"
获取手机号失败"
- case: "小于7.32手机号一键登录case"
-
case
:
"
小于7.32手机号一键登录case"
phone_data
:
'
{
phone_data
:
'
{
"token"
:
"A4-lVEf_Fk2ekkxSFgSZ59yD6bPaIxHWzJfsGgaEBDrbZzFyxMueOODIoBeXXQuHU8REjG42jvyjQa2a3rkDm8ufKlI8DL3ny2FfxnUrnuQOycWRaHKN3664onbOetr54dvb4wkVaV7X33yBlw7u_ZCNqIOwTnRQ9kPgHDBpvyN4NTdYYf2tJWhF4VeiVOqc7OiRz-Nzt08AUvbtWpw6sPQjA==",
"token"
:
"A4-lVEf_Fk2ekkxSFgSZ59yD6bPaIxHWzJfsGgaEBDrbZzFyxMueOODIoBeXXQuHU8REjG42jvyjQa2a3rkDm8ufKlI8DL3ny2FfxnUrnuQOycWRaHKN3664onbOetr54dvb4wkVaV7X33yBlw7u_ZCNqIOwTnRQ9kPgHDBpvyN4NTdYYf2tJWhF4VeiVOqc7OiRz-Nzt08AUvbtWpw6sPQjA==",
"appId"
:
"xK5yFMfJ"
"appId"
:
"xK5yFMfJ"
...
...
test_backend_data/diary/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_data/diary/diary_album.yaml
0 → 100644
View file @
2e83a3f6
diary_album
:
#进入日记本相册case--无须字段
-
case
:
"
进入日记本相册case"
assert
:
false
assert2
:
true
#
#diary_cancelfavor:
#-
# case: "取消收藏case"
# assert: "已取消收藏"
test_backend_data/diary/diary_cancelfavor.yaml
0 → 100644
View file @
2e83a3f6
diary_cancelfavor
:
#取消收藏case--无须字段
-
case
:
"
取消收藏成功case"
assert
:
"
已取消收藏"
assert2
:
"
请登录后再试"
#
#diary_cancelfavor:
#-
# case: "取消收藏case"
# assert: "已取消收藏"
test_backend_data/diary/diary_common_reply.yaml
0 → 100644
View file @
2e83a3f6
diary_common_reply
:
#取消点赞case--从日记本列表点赞
-
case
:
"
日记本列表评论列表--校验"
id
:
21250007
type
:
2
assert1
:
0
assert2
:
"
请登录后再试"
assert3
:
"
已经赞过啦"
#diary_canclevote:
#点赞成功case--无须字段
# -
# case: "点赞成功case"
# id: 21249958
# topic_id: 21249958
# assert: "0"
# assert2: "请登录后再试"
test_backend_data/diary/diary_isfavor.yaml
0 → 100644
View file @
2e83a3f6
diary_isfavor
:
#收藏case--无须字段
-
case
:
"
收藏成功case"
assert
:
"
收藏成功"
assert2
:
"
请登录后再试"
#diary_cancelfavor:
#-
# case: "取消收藏case"
# assert: "已取消收藏"
test_backend_data/diary/diary_operation.yaml
0 → 100644
View file @
2e83a3f6
diary_operation
:
#修改日记本信息case--
-
case
:
"
修改信息"
diary_id
:
17586198
title
:
"
上海哈哈哈哈哈哈哈哈哈哈哈虎骨"
operation_timestamp
:
1620662400
doctor_name
:
"
也一样"
hospital_name
:
"
一样一样"
assert
:
"
没有权限"
-
case
:
"
将原来的修改内容修改回去,方便下次接着使用"
diary_id
:
17586198
title
:
"
测试"
operation_timestamp
:
1620662401
doctor_name
:
"
测试"
hospital_name
:
"
测试"
assert
:
"
没有权限"
#
#diary_cancelfavor:
#-
# case: "取消收藏case"
# assert: "已取消收藏"
test_backend_data/diary/diary_service.yaml
0 → 100644
View file @
2e83a3f6
diary_service
:
#字段正常case
-
case
:
"
有推荐美购的日记--有外显评论"
diary_id
:
"
"
service_id
:
5815774
assert
:
0
-
case
:
"
接口传参数失败,但不报错case"
current_city_id
:
"
beijing"
diary_referrer
:
"
my_diary"
sort
:
0
count
:
8
start_num
:
2
assert
:
0
test_backend_data/diary/diary_update.yaml
0 → 100644
View file @
2e83a3f6
diary_update
:
#创建更新日记本信息case--创建新的日记贴
-
case
:
"
发布成功--校验"
topic_list
:
'
[{"content":"呵呵呵呵呵","images":[{"image":"2021/06/04/1545/b9ed9f0dc883"}],"operation_timestamp":"1622792725"}]'
status
:
true
assert
:
"
没有权限"
isLogin
:
1
#
#diary_cancelfavor:
#-
# case: "取消收藏case"
# assert: "已取消收藏"
test_backend_data/diary/diary_vote.yaml
0 → 100644
View file @
2e83a3f6
diary_vote
:
#取消点赞case--从日记本列表点赞
-
case
:
"
日记本列表点赞--点赞&取消点赞成功case--校验"
id
:
21249958
topic_id
:
21249958
assert1
:
0
assert2
:
"
请登录后再试"
assert3
:
"
已经赞过啦"
#diary_canclevote:
#点赞成功case--无须字段
# -
# case: "点赞成功case"
# id: 21249958
# topic_id: 21249958
# assert: "0"
# assert2: "请登录后再试"
#diary_detail:
# #获取详情页是否点赞过--好像不是从这取
# -
# case: "取消收藏成功case"
# id: 21249958
# assert: "0"
# assert2: "请登录后再试"
test_backend_data/face_data/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_data/face_data/diary_cards.yaml
0 → 100644
View file @
2e83a3f6
diary_cards
:
-
case
:
"
测颜值根据标签推荐日记"
facial_type2tag_names
:
'
{"2":["玻尿酸垫下巴","自体脂肪垫下巴"],"3":["半永久纹眉","植眉"]}'
assert_feed_nums
:
2
\ No newline at end of file
test_backend_data/gmai_data/plastic_cheek_style_classify.yaml
0 → 100644
View file @
2e83a3f6
plastic_cheek_style_classify
:
#获取3D变脸配置
-
case
:
"
获取3D变脸配置"
version
:
"
7.44.0"
assert
:
0
test_backend_data/hybrid_data/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_data/hybrid_data/basewiki_item.yaml
0 → 100644
View file @
2e83a3f6
basewiki_item
:
-
#百科详情页-项目百科,水光针
case
:
"
百科详情页-项目百科,水光针"
version
:
"
744.0"
assert
:
水光针
\ No newline at end of file
test_backend_data/hybrid_data/basewiki_product.yaml
0 → 100644
View file @
2e83a3f6
basewiki_product
:
-
#百科详情页-药品(仪器、材料)百科,菲洛嘉
case
:
"
百科详情页-药品(仪器、材料)百科,菲洛嘉"
version
:
"
744.0"
assert
:
菲洛嘉
\ No newline at end of file
test_backend_data/hybrid_data/brand.yaml
0 → 100644
View file @
2e83a3f6
brand
:
-
#百科详情页-品牌百科,得玛莎
case
:
"
百科详情页-品牌百科,得玛莎"
version
:
"
744.0"
assert
:
得玛莎
\ No newline at end of file
test_backend_data/hybrid_data/sub_wiki.yaml
0 → 100644
View file @
2e83a3f6
sub_wiki
:
-
#百科详情页-项目聚合百科,玻尿酸
case
:
"
百科详情页-项目聚合百科,玻尿酸"
current_city_id
:
"
beijing"
version
:
"
744.0"
assert
:
玻尿酸
\ No newline at end of file
test_backend_data/hybrid_promotion_data/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_data/hybrid_promotion_data/related_service_data.yaml
0 → 100644
View file @
2e83a3f6
related_service_data
:
-
case
:
"
商祥页-推荐商品列表-接口调用成功case"
service_id
:
"
5815040"
page
:
1
assert_error
:
0
\ No newline at end of file
test_backend_data/janus_data/beauty_card_confirm.yaml
0 → 100644
View file @
2e83a3f6
beauty_card_confirm
:
-
case
:
"
次卡-确认订单-接口调用成功case"
sku_id
:
"
10176"
number
:
1
use_bc_coupon
:
1
bc_coupon_id
:
0
assert_error
:
0
test_backend_data/janus_data/product_coupon_my_list.yaml
0 → 100644
View file @
2e83a3f6
product_coupon_my_list
:
-
case
:
"
我的美券列表(新)-校验接口返回成功case"
start_num
:
0
tab_id
:
0
assert_error
:
0
\ No newline at end of file
test_backend_data/janus_data/product_my_list.yaml
0 → 100644
View file @
2e83a3f6
product_my_list
:
-
case
:
"
未使用美券列表"
start_num
:
0
tab_id
:
0
-
case
:
"
已使用美券列表"
start_num
:
0
tab_id
:
1
-
case
:
"
已过期"
start_num
:
0
tab_id
:
2
\ No newline at end of file
test_backend_data/orders_data/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_data/orders_data/my_v2.yaml
0 → 100644
View file @
2e83a3f6
waituse
:
#待使用
-
case
:
"
待使用tab"
start_num
:
0
status
:
1
version
:
"
7.44.0"
beauty_card_order_status
:
4
beauty_card_order_statust
:
"
待使用"
beauty_card_order_gmurl
:
"
gengmei://order_beauty_card_detail?order_id={}&type=4"
beauty_card_button_title
:
"
预约服务"
beauty_card_button_gmurl
:
"
gengmei://order_beauty_card_reserve?order_id={}"
beauty_card_button_mianmo_title
:
"
立即领取面膜"
putong_card_order_status
:
"
1"
putong_card_order_statust
:
"
待使用"
\ No newline at end of file
test_backend_data/pay_data/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_data/pay_data/alipay_prepay.yaml
0 → 100644
View file @
2e83a3f6
alipay_prepay
:
-
case
:
"
普通美购下单流程--支付宝支付方式"
version
:
v1
is_huabei
:
0
huabei_period
:
0
service_item_id
:
473317
number
:
1
platform_coupon_id
:
"
"
use_point
:
0
is_doctor_see
:
1
doctor_coupon_id
:
"
"
insurance_info
:
"
[]"
is_create_groupbuy
:
0
assert
:
0
test_backend_data/pay_data/jump.yaml
0 → 100644
View file @
2e83a3f6
jump
:
-
case
:
"
普通美购下单流程--跳转第三方"
service_item_id
:
473317
number
:
1
platform_coupon_id
:
"
"
use_point
:
0
is_doctor_see
:
1
doctor_coupon_id
:
"
"
insurance_info
:
"
[]"
is_create_groupbuy
:
0
assert
:
0
\ No newline at end of file
test_backend_data/pay_data/wechat_prepay.yaml
0 → 100644
View file @
2e83a3f6
wechart_pay
:
-
case
:
"
普通美购订单支付流程--微信支付"
service_item_id
:
473317
number
:
1
platform_coupon_id
:
"
"
use_point
:
0
is_doctor_see
:
1
doctor_coupon_id
:
"
"
insurance_info
:
"
[]"
is_create_groupbuy
:
0
assert
:
0
test_backend_data/personal_data/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_data/personal_data/personal_recommends.yaml
0 → 100644
View file @
2e83a3f6
personal_recommends
:
#日记本详情页推荐接口校验
-
case
:
"
校验详情页推荐数据--日记本"
current_city_id
:
"
beijiing"
id
:
17586195
from_type
:
"
diary"
assert_error
:
0
assert_count
:
10
# 日记贴详情页推荐接口校验
-
case
:
"
校验详情页推荐数据--日记贴"
current_city_id
:
"
beijiing"
id
:
123456795
from_type
:
"
topic"
assert_error
:
0
assert_count
:
10
# 帖子详情页推荐接口校验
-
case
:
"
校验详情页推荐数据--帖子"
current_city_id
:
"
beijiing"
id
:
187333
from_type
:
"
tractate"
assert_error
:
0
assert_count
:
10
# 问答详情页推荐接口校验
-
case
:
"
校验详情页推荐数据--问答"
current_city_id
:
"
beijiing"
id
:
231628
from_type
:
"
question"
assert_error
:
0
assert_count
:
10
test_backend_data/settlement_data/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_data/settlement_data/create_v1.yaml
0 → 100644
View file @
2e83a3f6
create_v1
:
-
case
:
"
普通美购下单--获取支付类型接口"
service_item_id
:
599428
number
:
1
platform_coupon_id
:
"
"
use_point
:
0
is_doctor_see
:
1
doctor_coupon_id
:
"
"
insurance_info
:
"
[]"
is_create_groupbuy
:
0
assert
:
0
test_backend_data/settlement_data/pay.yaml
0 → 100644
View file @
2e83a3f6
pay
:
-
case
:
"
普通美购下单流程--生成支付金额等信息"
service_item_id
:
599428
number
:
1
platform_coupon_id
:
"
"
use_point
:
0
is_doctor_see
:
1
doctor_coupon_id
:
"
"
insurance_info
:
"
[]"
is_create_groupbuy
:
0
assert
:
0
\ No newline at end of file
test_backend_data/settlement_data/pay_v1.yaml
0 → 100644
View file @
2e83a3f6
pay_v1
:
-
case
:
"
普通美购下单流程--获取支付类型接口"
actual_pay
:
656
payment_final_price
:
2624
is_contains_groupbuy_order
:
"
false"
mul_orders_number
:
"
false"
assert
:
0
test_backend_data/settlement_data/preview_v1.yaml
0 → 100644
View file @
2e83a3f6
preview_v1
:
-
case
:
"
普通美购下单流程--确认订单页面sucess"
current_city_id
:
"
beijing"
service_item_id
:
599428
number
:
1
use_platform_coupon
:
1
use_doctor_coupon
:
1
use_coupon_grey
:
"
true"
is_create_groupbuy
:
0
assert
:
0
\ No newline at end of file
test_backend_data/settlement_data/settlement_delete.yaml
0 → 100644
View file @
2e83a3f6
settlement_delete
:
-
case
:
"
普通美购订单流程--取消订单成功"
start_num
:
0
status
:
0
version
:
7.44.0
cancel_reason_value
:
2
assert
:
"
取消成功"
\ No newline at end of file
test_backend_data/settlement_data/settlement_detail.yaml
0 → 100644
View file @
2e83a3f6
settlement_detail
:
-
case
:
"
普通美购订单流程--查看订单详情页订单存在"
id
:
522139664651
assert
:
0
-
case
:
"
普通美购订单流程--查看订单详情页订单不存在"
id
:
522139664650
assert
:
1
\ No newline at end of file
test_backend_data/tractate_data/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_data/tractate_data/tractate_detail.yaml
0 → 100644
View file @
2e83a3f6
tractate_detail
:
#用户贴详情页接口校验
-
case
:
"
校验详情页推荐数据--用户贴--无评论"
current_city_id
:
"
beijiing"
tractate_id
:
187937
data_type
:
"
user_post"
assert_error
:
0
assert_count
:
10
-
case
:
"
校验详情页推荐数据--用户贴--有评论"
current_city_id
:
"
beijiing"
tractate_id
:
171688
data_type
:
"
user_post"
assert_error
:
0
assert_count
:
10
test_backend_data/visual_beauty_card_data/__init__.py
0 → 100644
View file @
2e83a3f6
test_backend_data/visual_beauty_card_data/beautycard_filters.yaml
0 → 100644
View file @
2e83a3f6
beautycard_filters
:
-
#更美次卡商品列表组件筛选器-按SPU导入,筛选器接口正常
case
:
"
更美次卡商品列表组件筛选器-按SPU导入,筛选器接口正常"
unit_id
:
"
20109"
current_city_id
:
"
beijing"
version
:
"
743.0"
assert
:
0
-
#更美次卡商品列表组件筛选器-按SKU导入,筛选器接口正常
case
:
"
更美次卡商品列表组件筛选器-按SKU导入,筛选器接口正常"
unit_id
:
"
20113"
current_city_id
:
"
beijing"
version
:
"
743.0"
assert
:
0
\ No newline at end of file
test_backend_data/visual_beauty_card_data/beautycard_skus.yaml
0 → 100644
View file @
2e83a3f6
beautycard_skus
:
-
#更美次卡商品列表组件商品-按SPU导入,商品默认排序
case
:
"
更美次卡商品列表组件商品-按SPU导入,商品默认排序"
unit_id
:
"
20109"
tag_id
:
"
-1"
area
:
"
worldwide"
sort_type
:
"
0"
page
:
"
0"
page_size
:
"
20"
assert
:
0
-
#更美次卡商品列表组件商品-按SKU导入,商品默认排序
case
:
"
更美次卡商品列表组件商品-按SKU导入,商品默认排序"
unit_id
:
"
20113"
tag_id
:
"
-1"
area
:
"
worldwide"
sort_type
:
"
0"
page
:
"
0"
page_size
:
"
20"
assert
:
0
-
#更美次卡商品列表组件商品-按SPU导入,商品价格最低
case
:
"
更美次卡商品列表组件商品-按SPU导入,商品价格最低"
unit_id
:
"
20110"
tag_id
:
"
-1"
area
:
"
worldwide"
sort_type
:
"
2"
page
:
"
0"
page_size
:
"
20"
assert
:
0
-
#更美次卡商品列表组件商品-按SKU导入,商品价格最低
case
:
"
更美次卡商品列表组件商品-按SKU导入,商品价格最低"
unit_id
:
"
20114"
tag_id
:
"
-1"
area
:
"
worldwide"
sort_type
:
"
2"
page
:
"
0"
page_size
:
"
20"
assert
:
0
-
#更美次卡商品列表组件商品-按SPU导入,商品销量最高
case
:
"
更美次卡商品列表组件商品-按SPU导入,商品销量最高"
unit_id
:
"
20111"
tag_id
:
"
-1"
area
:
"
worldwide"
sort_type
:
"
1"
page
:
"
0"
page_size
:
"
20"
assert
:
0
-
#更美次卡商品列表组件商品-按SKU导入,商品销量最高
case
:
"
更美次卡商品列表组件商品-按SKU导入,商品销量最高"
unit_id
:
"
20115"
tag_id
:
"
-1"
area
:
"
worldwide"
sort_type
:
"
1"
page
:
"
0"
page_size
:
"
20"
assert
:
0
-
#更美次卡商品列表组件商品-按SPU导入,商品最新上架
case
:
"
更美次卡商品列表组件商品-按SPU导入,商品最新上架"
unit_id
:
"
20112"
tag_id
:
"
-1"
area
:
"
worldwide"
sort_type
:
"
3"
page
:
"
0"
page_size
:
"
20"
assert
:
0
-
#更美次卡商品列表组件商品-按SKU导入,商品最新上架
case
:
"
更美次卡商品列表组件商品-按SKU导入,商品最新上架"
unit_id
:
"
20116"
tag_id
:
"
-1"
area
:
"
worldwide"
sort_type
:
"
3"
page
:
"
0"
page_size
:
"
20"
assert
:
0
-
#更美次卡商品列表组件商品-按SPU导入,修改城市筛选器为北京,商品正常召回
case
:
"
更美次卡商品列表组件商品-按SPU导入,修改城市筛选器为北京,商品正常召回"
unit_id
:
"
20110"
tag_id
:
"
-1"
area
:
"
beijing"
sort_type
:
"
2"
page
:
"
0"
page_size
:
"
20"
assert
:
0
-
#更美次卡商品列表组件商品-按SKU导入,修改城市筛选器为北京,商品正常召回
case
:
"
更美次卡商品列表组件商品-按SKU导入,修改城市筛选器为北京,商品正常召回"
unit_id
:
"
20115"
tag_id
:
"
-1"
area
:
"
beijing"
sort_type
:
"
1"
page
:
"
0"
page_size
:
"
20"
assert
:
0
test_backend_data/visual_beauty_card_data/visual_beauty_card_services.yaml
0 → 100644
View file @
2e83a3f6
visual_beauty_card_services
:
-
#更美次卡橱窗-按SPU导入,定位北京,商品正常召回
case
:
"
更美次卡橱窗-按SPU导入,定位北京,商品正常召回"
unit_id
:
"
20105"
current_city_id
:
"
beijing"
page
:
"
0"
page_size
:
"
50"
version
:
"
743.0"
assert
:
0
-
#更美次卡橱窗-按SKU导入,定位北京,商品正常召回
case
:
"
更美次卡橱窗-按SKU导入,定位北京,商品正常召回"
unit_id
:
"
20106"
current_city_id
:
"
beijing"
page
:
"
0"
page_size
:
"
50"
version
:
"
743.0"
assert
:
0
\ 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