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
a59776b9
Commit
a59776b9
authored
May 28, 2021
by
陈雪
Browse files
Options
Browse Files
Download
Plain Diff
hebing
parents
492ce719
9624c481
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
97 additions
and
15 deletions
+97
-15
web2_request.py
all_doctor_api/web2_request.py
+4
-0
web2_request.yaml
all_doctor_api/web2_request.yaml
+4
-2
web_request.py
all_doctor_api/web_request.py
+0
-1
web_request.yaml
all_doctor_api/web_request.yaml
+1
-0
base_request.py
in_common/base_request.py
+1
-1
test_service_list.py
test_doctor_case/web2_case/test_service_list.py
+4
-0
test_service_review_list.py
test_doctor_case/web2_case/test_service_review_list.py
+1
-1
test_servicereview_option.py
test_doctor_case/web2_case/test_servicereview_option.py
+1
-1
test_tag_all.py
test_doctor_case/web2_case/test_tag_all.py
+1
-1
test_account_unreadbadgecount.py
test_doctor_case/web_case/test_account_unreadbadgecount.py
+1
-1
test_article_videotoken.py
test_doctor_case/web_case/test_article_videotoken.py
+1
-1
test_doctor_submechanisms.py
test_doctor_case/web_case/test_doctor_submechanisms.py
+1
-1
service_list.yaml
test_doctor_data/web2_data/service_list.yaml
+42
-0
service_review_list.yaml
test_doctor_data/web2_data/service_review_list.yaml
+26
-0
servicereview_option.yaml
test_doctor_data/web2_data/servicereview_option.yaml
+1
-1
tag_all.yaml
test_doctor_data/web2_data/tag_all.yaml
+2
-1
account_unreadbadgecount.yaml
test_doctor_data/web_data/account_unreadbadgecount.yaml
+2
-1
article_videotoken.yaml
test_doctor_data/web_data/article_videotoken.yaml
+2
-1
doctor_submechanisms.yaml
test_doctor_data/web_data/doctor_submechanisms.yaml
+2
-1
No files found.
all_doctor_api/web2_request.py
View file @
a59776b9
...
...
@@ -26,5 +26,9 @@ if __name__ == '__main__':
print
(
web2_request
()
.
servicereview_option
(
"209989"
,
"1"
,
"PC8uTySuxipukIMuqNV1OPB376C2ZZ3g"
))
print
(
web2_request
()
.
tag_all
())
print
(
web2_request
()
.
tag_all
())
all_doctor_api/web2_request.yaml
View file @
a59776b9
...
...
@@ -42,10 +42,13 @@ servicereview_option:
tag_all
:
method
:
get
url
:
/api/web2/tag/all
param
:
{}
data
:
{}
json
:
{}
isLogin
:
1
\ No newline at end of file
isLogin
:
1
all_doctor_api/web_request.py
View file @
a59776b9
...
...
@@ -6,7 +6,6 @@ class web_request(BaseRequest):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
ACCOUNT_URL
)
def
account_unreadbadgecount
(
self
)
:
return
self
.
api_send
(
self
.
data
[
"account_unreadbadgecount"
])
...
...
all_doctor_api/web_request.yaml
View file @
a59776b9
...
...
@@ -17,6 +17,7 @@ article_videotoken:
isLogin
:
1
doctor_submechanisms
:
method
:
get
url
:
/api/web/doctor/submechanisms
...
...
in_common/base_request.py
View file @
a59776b9
...
...
@@ -27,7 +27,7 @@ class BaseRequest:
return
yaml
.
safe_load
(
f
)
# 调用yaml加载文件API加载
def
api_load
(
self
,
path
)
:
def
api_load
(
self
,
path
:
object
)
->
object
:
return
self
.
yaml_load
(
path
)
def
jsonpath
(
self
,
path
,
r
=
None
,
**
kwargs
):
...
...
test_doctor_case/web2_case/test_service_list.py
View file @
a59776b9
...
...
@@ -13,7 +13,11 @@ class TestServiceList:
@pytest.mark.parametrize
(
"params"
,
ServiceList_data
,
ids
=
ServiceList_case
)
def
test_ServiceList
(
self
,
params
):
r
=
web2_request
()
.
service_list
(
params
[
'page'
],
params
[
'pagesize'
],
params
[
'is_online'
])
print
(
"======"
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"data"
][
"page"
]
==
params
[
"assert"
]
elif
r
[
"error"
]
==
1
:
...
...
test_doctor_case/web2_case/test_service_review_list.py
View file @
a59776b9
...
...
@@ -15,7 +15,7 @@ class TestServiceReviewList:
def
test_ServiceReviewList
(
self
,
params
):
r
=
web2_request
()
.
service_review_list
(
params
[
'page'
],
params
[
'pagesize'
],
params
[
'type'
])
print
(
"--------
-
"
,
r
)
print
(
"--------"
,
r
)
print
(
"...."
)
if
r
[
"error"
]
==
0
:
...
...
test_doctor_case/web2_case/test_servicereview_option.py
View file @
a59776b9
...
...
@@ -15,7 +15,7 @@ class TestServicereviewOption:
def
test_ServicereviewOption
(
self
,
params
):
r
=
web2_request
()
.
servicereview_option
(
params
[
'id'
],
params
[
'type'
],
params
[
'csrfmiddlewaretoken'
])
print
(
"--------
-
"
,
r
)
print
(
"--------"
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
params
[
"assert"
]
...
...
test_doctor_case/web2_case/test_tag_all.py
View file @
a59776b9
...
...
@@ -15,7 +15,7 @@ class TestTagAll:
def
test_TagAll
(
self
,
param
):
r
=
web2_request
()
.
tag_all
()
print
(
"--------
-
"
,
r
)
print
(
"--------"
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert"
]
...
...
test_doctor_case/web_case/test_account_unreadbadgecount.py
View file @
a59776b9
...
...
@@ -15,7 +15,7 @@ class TestAccountUnreadbadgecount:
def
test_AccountUnreadbadgecount
(
self
,
param
):
r
=
web_request
()
.
account_unreadbadgecount
()
print
(
"=====
=
"
,
r
)
print
(
"====="
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert"
]
# elif r["error"] == 1:
...
...
test_doctor_case/web_case/test_article_videotoken.py
View file @
a59776b9
...
...
@@ -15,7 +15,7 @@ class TestArticleVideotoken:
def
test_ArticleVideotokent
(
self
,
param
):
r
=
web_request
()
.
article_videotoken
()
print
(
"======"
,
r
)
print
(
"======
=
"
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert"
]
# elif r["error"] == 1:
...
...
test_doctor_case/web_case/test_doctor_submechanisms.py
View file @
a59776b9
...
...
@@ -15,7 +15,7 @@ class TestDoctorSubmechanisms:
def
test_DoctorSubmechanisms_data
(
self
,
param
):
r
=
web_request
()
.
doctor_submechanisms
()
print
(
"======"
,
r
)
print
(
"======
=
"
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert"
]
# elif r["error"] == 1:
...
...
test_doctor_data/web2_data/service_list.yaml
View file @
a59776b9
service_list
:
#有数据返回
#我的商品菜单下有数据返回1
-
case
:
"
数据"
page
:
"
1"
pagesize
:
"
10"
is_online
:
"
-1"
assert
:
1
-
case
:
"
我的商品-上线tab"
page
:
"
1"
pagesize
:
"
10"
is_online
:
"
-1"
extra_filter_choice
:
"
-1"
assert
:
1
-
case
:
"
我的商品-下线tab"
page
:
"
1"
pagesize
:
"
10"
is_online
:
"
0"
extra_filter_choice
:
"
-1"
assert
:
1
-
case
:
"
我的商品-待升级(全部tab)"
page
:
"
1"
pagesize
:
"
10"
is_online
:
"
-1"
extra_filter_choice
:
"
0"
assert
:
1
-
case
:
"
我的商品-待修改类目(全部tab)有数据返回"
page
:
"
1"
pagesize
:
"
10"
is_online
:
"
-1"
extra_filter_choice
:
"
1"
assert
:
1
test_doctor_data/web2_data/service_review_list.yaml
0 → 100644
View file @
a59776b9
service_review_list
:
#有数据返回
-
case
:
"
商品审核-新商品审核
"
page
:
"
1"
pagesize
:
"
10"
type
:
"
0"
assert
:
1
-
case
:
"
商品审核-商品修改审核"
page
:
"
1"
pagesize
:
"
10"
type
:
"
1"
assert
:
1
-
case
:
"
商品审核-新商品审核"
page
:
"
1"
pagesize
:
"
10"
type
:
"
2"
assert
:
1
test_doctor_data/web2_data/servicereview_option.yaml
View file @
a59776b9
...
...
@@ -17,7 +17,7 @@ servicereview_option:
-
case
:
"
商品修改审核-撤回审核"
case
:
"
商品修改审核-撤回审核
"
id
:
"
209866"
type
:
"
1"
csrfmiddlewaretoken
:
"
PC8uTySuxipukIMuqNV1OPB376C2ZZ3g"
...
...
test_doctor_data/web2_data/tag_all.yaml
View file @
a59776b9
tag_all
:
-
case
:
"
发布商品-选择类目跳转发布商品页面tag接口"
case
:
"
发布商品-选择类目跳转发布商品页面tag接口
"
assert
:
0
\ No newline at end of file
test_doctor_data/web_data/account_unreadbadgecount.yaml
View file @
a59776b9
account_unreadbadgecount
:
-
case
:
"
发布商品-选择类目跳转发布商品页面account接口"
case
:
"
发布商品-选择类目跳转发布商品页面account接口
"
assert
:
0
\ No newline at end of file
test_doctor_data/web_data/article_videotoken.yaml
View file @
a59776b9
article_videotoken
:
-
case
:
"
发布商品-选择类目跳转发布商品页面article接口"
case
:
"
发布商品-选择类目跳转发布商品页面article接口
"
assert
:
0
\ No newline at end of file
test_doctor_data/web_data/doctor_submechanisms.yaml
View file @
a59776b9
doctor_submechanisms
:
-
case
:
"
发布商品-选择类目跳转发布商品页面doctor接口"
case
:
"
发布商品-选择类目跳转发布商品页面doctor接口
"
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