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
5916884f
Commit
5916884f
authored
May 28, 2021
by
陈雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发布商品选择类目
parent
350a88c6
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
59 additions
and
0 deletions
+59
-0
web_request.py
all_doctor_api/web_request.py
+17
-0
web_request.yaml
all_doctor_api/web_request.yaml
+11
-0
path_setting.py
path_setting.py
+3
-0
__init__.py
test_doctor_case/web_case/__init__.py
+0
-0
test_account_unreadbadgecount.py
test_doctor_case/web_case/test_account_unreadbadgecount.py
+23
-0
__init__.py
test_doctor_data/web_data/__init__.py
+0
-0
account_unreadbadgecount.yaml
test_doctor_data/web_data/account_unreadbadgecount.yaml
+5
-0
No files found.
all_doctor_api/web_request.py
0 → 100644
View file @
5916884f
import
path_setting
from
in_common.base_request
import
BaseRequest
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"
])
if
__name__
==
'__main__'
:
print
(
web_request
()
.
account_unreadbadgecount
())
all_doctor_api/web_request.yaml
0 → 100644
View file @
5916884f
account_unreadbadgecount
:
method
:
get
url
:
/api/web/account/unread_badge_count
param
:
{}
data
:
phone_num
:
${phone_num}
vfc_code
:
${vfc_code}
face_token
:
${face_token}
json
:
{}
isLogin
:
1
\ No newline at end of file
path_setting.py
View file @
5916884f
...
...
@@ -28,6 +28,9 @@ SERVICE_REVIEW_DATA=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web2_d
#医生后台-新商品审核-撤回审核
SERVICEREVIEW_OPTION_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web2_data"
,
"servicereview_option.yaml"
)
#医生后台-发布商品选择类目
ACCOUNT_URL
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_doctor_api"
,
"web_request.yaml"
)
ACCOUNT_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web_data"
,
"account_unreadbadgecount.yaml"
)
#搜索首页-热门搜索
KEYWORDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"search_request.yaml"
)
...
...
test_doctor_case/web_case/__init__.py
0 → 100644
View file @
5916884f
test_doctor_case/web_case/test_account_unreadbadgecount.py
0 → 100644
View file @
5916884f
import
pytest
import
path_setting
from
all_doctor_api.web_request
import
web_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestAccountUnreadbadgecount
:
account_unreadbadgecount
=
BaseRequest
()
.
api_load
(
path_setting
.
ACCOUNT_DATA
)
AccountUnreadbadgecount_case
,
AccountUnreadbadgecount_data
=
get_ids
(
account_unreadbadgecount
,
"account_unreadbadgecount"
)
print
(
"-----"
,
account_unreadbadgecount
)
@pytest.mark.parametrize
(
"param"
,
AccountUnreadbadgecount_data
,
ids
=
AccountUnreadbadgecount_case
)
def
test_AccountUnreadbadgecount
(
self
,
param
):
r
=
web_request
()
.
account_unreadbadgecount
()
print
(
"======"
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert"
]
# elif r["error"] == 1:
# assert r["message"] == params["assert"]
\ No newline at end of file
test_doctor_data/web_data/__init__.py
0 → 100644
View file @
5916884f
test_doctor_data/web_data/account_unreadbadgecount.yaml
0 → 100644
View file @
5916884f
account_unreadbadgecount
:
-
case
:
"
发布商品-选择类目跳转发布商品页面"
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