Commit 278d89a2 authored by 陈雪's avatar 陈雪

提交远程

parent 0a0e5251
...@@ -64,7 +64,8 @@ OFFLINE_DATA=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "s ...@@ -64,7 +64,8 @@ OFFLINE_DATA=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "s
#医生后台-我的商品-删除商品 #医生后台-我的商品-删除商品
DELETE_DATA=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web2_data", "service_delete.yaml") DELETE_DATA=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web2_data", "service_delete.yaml")
#医生后台-编辑ke #医生后台-编辑可标准化商品
PROPERTIES_DATA=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/glmer_data", "tag_properties.yaml")
#搜索首页-热门搜索 #搜索首页-热门搜索
KEYWORDS_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "search_request.yaml") KEYWORDS_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "search_request.yaml")
......
...@@ -7,13 +7,13 @@ from in_common.base_request import BaseRequest ...@@ -7,13 +7,13 @@ from in_common.base_request import BaseRequest
class TestTagProperties: class TestTagProperties:
tag_properties = BaseRequest().api_load(path_setting.DETAIL_DATA) tag_properties = BaseRequest().api_load(path_setting.PROPERTIES_DATA)
TagProperties_case, TagProperties_data = get_ids(tag_properties, "tag_properties") TagProperties_case, TagProperties_data = get_ids(tag_properties, "tag_properties")
@pytest.mark.parametrize("params",TagProperties_data,ids=TagProperties_case) @pytest.mark.parametrize("params",TagProperties_data,ids=TagProperties_case)
def test_ServiceDetail(self,params): def test_TagProperties(self,params):
r =glmer_request().tag_properties() r =glmer_request().tag_properties(params['catalog_ids'])
print("------",r) print("------",r)
if r["error"] == 0: if r["error"] == 0:
assert r["error"] == params["assert"] assert r["error"] == params["assert"]
\ 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