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
112c2222
Commit
112c2222
authored
Apr 21, 2021
by
张伟男
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AI,跳过
parent
044e6577
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
2 deletions
+45
-2
host.yaml
host.yaml
+2
-2
test_recomend_services.py
test_backend_case/oneimage_case/test_recomend_services.py
+19
-0
test_share_v4.py
test_backend_case/oneimage_case/test_share_v4.py
+24
-0
No files found.
host.yaml
View file @
112c2222
develop_host
:
#
backend: http://backend.paas-develop.env
doctor
:
http://doctor.paas-develop.env
backend
:
http://backend.paas-develop.env
#
doctor: http://doctor.paas-develop.env
test_backend_case/oneimage_case/test_recomend_services.py
0 → 100644
View file @
112c2222
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.oneimage_request
import
oneimage_request
# 测颜值根据五官推荐美购
class
TestRecomendServices
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ONEIMAGE_RECOMEND_SERVICES_DATA
)
recomendservice_case
,
recomendservice_data
=
get_ids
(
data
,
"recomend_services"
)
@pytest.mark.skip
(
"跳过测颜值根据五官推荐美购,目前数据是参数是线上的-------------------"
)
@pytest.mark.parametrize
(
"param"
,
recomendservice_data
,
ids
=
recomendservice_case
)
def
test_recomend_services
(
self
,
param
):
r
=
oneimage_request
()
.
recomend_services
(
param
[
"version"
],
param
[
"business_tags_names"
])
assert
r
[
"error"
]
==
param
[
"assert"
]
test_backend_case/oneimage_case/test_share_v4.py
0 → 100644
View file @
112c2222
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.oneimage_request
import
oneimage_request
class
TestShareV4
:
"""
测颜值结果页,分享结果
"""
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ONEIMAGE_SHARE_V4_DATA
)
sharev4_case
,
sharev4_data
=
get_ids
(
data
,
"share_v4"
)
@pytest.mark.skip
(
"跳过,测颜值结果v4,目前数据是线上的-------------------"
)
@pytest.mark.parametrize
(
"param"
,
sharev4_data
,
ids
=
sharev4_case
)
def
test_share_v4
(
self
,
param
):
r
=
oneimage_request
()
.
share_v4
(
param
[
"version"
],
param
[
"face_id"
])
if
r
[
"error"
]
==
0
:
data
=
r
.
get
(
"data"
)
assert
1
==
1
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