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
6ead9b8e
Commit
6ead9b8e
authored
May 12, 2021
by
张慧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
购物车-猜你喜欢列表
parent
917fe120
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
0 deletions
+43
-0
janus_request.py
all_backend_api/janus_request.py
+8
-0
janus_request.yaml
all_backend_api/janus_request.yaml
+10
-0
path_setting.py
path_setting.py
+2
-0
test_mine_guess_you_like.py
test_backend_case/janus_case/test_mine_guess_you_like.py
+18
-0
mine_guess_you_like.yaml
test_backend_data/janus_data/mine_guess_you_like.yaml
+5
-0
No files found.
all_backend_api/janus_request.py
View file @
6ead9b8e
...
...
@@ -43,5 +43,13 @@ class janus_request(BaseRequest):
return
self
.
api_send
(
self
.
data
[
'hospital_search'
])
#购物车-猜你喜欢列表
def
mine_guess_you_like
(
self
):
return
self
.
api_send
(
self
.
data
[
"mine_guess_you_like"
])
if
__name__
==
'__main__'
:
#打印购物车-猜你喜欢列表接口返回
print
(
janus_request
()
.
mine_guess_you_like
())
all_backend_api/janus_request.yaml
View file @
6ead9b8e
...
...
@@ -27,6 +27,16 @@ hospital_search:
data
:
{
}
json
:
{
}
#购物车-猜你喜欢
mine_guess_you_like
:
method
:
get
url
:
/api/janus/product/mine_guess_you_like
params
:
{}
data
:
{}
json
:
{}
isLogin
:
1
...
...
path_setting.py
View file @
6ead9b8e
...
...
@@ -81,6 +81,8 @@ USER_ANSWER = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data",
#购物车列表
SHOPCART_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"shopcart_request.yaml"
)
SHOPCART_LIST
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/shopcart_data"
,
"list.yaml"
)
#购物车-猜你喜欢列表
JANUS_MINE_GUESS_YOU_LIKE
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/janus_data"
,
"mine_guess_you_like.yaml"
)
#消息列表
MY_CONVERSATION_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"my_conversation_request.yaml"
)
...
...
test_backend_case/janus_case/test_mine_guess_you_like.py
0 → 100644
View file @
6ead9b8e
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
TestMineGuessYouLike
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
JANUS_MINE_GUESS_YOU_LIKE
)
mine_guess_you_like_case
,
mine_guess_you_like_data
=
get_ids
(
data
,
"mine_guess_you_like"
)
@pytest.mark.parametrize
(
"param"
,
mine_guess_you_like_data
,
ids
=
mine_guess_you_like_case
)
def
test_mine_guess_you_like
(
self
,
param
):
r
=
janus_request
()
.
mine_guess_you_like
()
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert_error"
]
test_backend_data/janus_data/mine_guess_you_like.yaml
0 → 100644
View file @
6ead9b8e
mine_guess_you_like
:
-
case
:
"
校验接口返回成功case"
assert_error
:
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