Commit 6ead9b8e authored by 张慧's avatar 张慧

购物车-猜你喜欢列表

parent 917fe120
......@@ -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())
......@@ -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
......
......@@ -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")
......
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"]
mine_guess_you_like:
-
case: "校验接口返回成功case"
assert_error: 0
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment