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
7d0c978c
Commit
7d0c978c
authored
Jun 16, 2021
by
张淑琴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务资源
parent
69804cc2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
4 deletions
+46
-4
web_request.py
all_doctor_api/web_request.py
+5
-2
web_request.yaml
all_doctor_api/web_request.yaml
+9
-0
host.yaml
host.yaml
+2
-2
path_setting.py
path_setting.py
+2
-0
test_artemis_ad_type_list.py
test_doctor_case/web_case/test_artemis_ad_type_list.py
+21
-0
artemis_ad_type_list.yaml
test_doctor_data/web_data/artemis_ad_type_list.yaml
+7
-0
No files found.
all_doctor_api/web_request.py
View file @
7d0c978c
...
...
@@ -63,6 +63,8 @@ class web_request(BaseRequest):
# return self.api_send(self.ACCOUNT_URL["file_upload"])
def
cpc_homepage
(
self
):
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"cpc_homepage"
])
def
artemis_ad_type_list
(
self
):
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"artemis_ad_type_list"
])
...
...
@@ -81,4 +83,5 @@ if __name__ == '__main__':
print
(
web_request
()
.
service_all
())
# print(web_request().file_upload("19","PC8uTySuxipukIMuqNV1OPB376C2ZZ3g","WU_FILE_0","lADPDg7mQdiUTiLNAZDNAZA_400_400.jpg_720x720g.jpg","image/jpeg","Mon Apr 26 2021 11:29:45 GMT+0800 (中国标准时间)","17688","(binary)"))
print
(
web_request
()
.
conversation_user_id
(
0
,
"您好"
,
602329
,
"271caac2ae1687ca0a56ee18115b8183"
,
"NLeTxEx1BOQo1zjv2us9BQ00ViMAHGpJ"
))
print
(
web_request
()
.
cpc_homepage
())
\ No newline at end of file
print
(
web_request
()
.
cpc_homepage
())
print
(
web_request
()
.
artemis_ad_type_list
())
\ No newline at end of file
all_doctor_api/web_request.yaml
View file @
7d0c978c
...
...
@@ -127,4 +127,12 @@ cpc_homepage:
params
:
{}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录
artemis_ad_type_list
:
method
:
get
url
:
/api/web/artemis/ad/type_list
params
:
{}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录
\ No newline at end of file
host.yaml
View file @
7d0c978c
develop_host
:
backend
:
http://backend.paas-develop.env
#
backend: http://backend.paas-develop.env
# om: http://om.paas-develop.env
#
doctor: http://doctor.paas-develop.env
doctor
:
http://doctor.paas-develop.env
# backend: https://backend.igengmei.com
path_setting.py
View file @
7d0c978c
...
...
@@ -386,6 +386,8 @@ CONVERSATIONCOUPON=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_dat
#医生后台-发送私信
CONVERSATIONUSERID
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web_data"
,
"conversation_user_id.yaml"
)
#医生后台-服务资源
ADTYPELIST
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web_data"
,
"artemis_ad_type_list.yaml"
)
#医生后台-点点通商品-概览
CPCHOMEPAGE
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web_data"
,
"cpc_homepage.yaml"
)
...
...
test_doctor_case/web_case/test_artemis_ad_type_list.py
0 → 100644
View file @
7d0c978c
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_doctor_api.web_request
import
web_request
class
TestArtemisAdTypeList
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ADTYPELIST
)
adtypelist_case
,
adtypelist_data
=
get_ids
(
data
,
"artemis_ad_type_list"
)
@pytest.mark.parametrize
(
"param"
,
adtypelist_data
,
ids
=
adtypelist_case
)
def
test_artemis_ad_type_list
(
self
,
param
):
'''服务资源列表'''
r
=
web_request
()
.
artemis_ad_type_list
()
if
r
[
"error"
]
==
0
:
adtypes
=
r
.
get
(
"data"
)
.
get
(
"adtypes"
,
[])
assert
len
(
adtypes
)
>=
param
[
"assert"
]
test_doctor_data/web_data/artemis_ad_type_list.yaml
0 → 100644
View file @
7d0c978c
artemis_ad_type_list
:
#服务资源case
-
case
:
"
服务资源"
assert
:
0
assert_account
:
0
assert1
:
True
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