Commit 878e2831 authored by 林颖's avatar 林颖

修改创建权限问题

parent 56ccd82f
......@@ -14,7 +14,7 @@ class diary_request(BaseRequest):
def diary_cancelfavor(self):
return self.api_send(self.data["cancelfavor"])
# 更新日记本
# 更新日记本 无权限
def diary_operation(self, diary_id, title, operation_timestamp, doctor_name, hospital_name):
self.params["diary_id"] = diary_id
self.params["title"] = title
......
......@@ -33,10 +33,11 @@ operation:
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#查看日记修改信息页面
additional_info:
method: get
url: /api/diary/operation/17586198/
url: /api/diary/operation/17586147/
params:
data: {}
json: {}
......@@ -71,7 +72,7 @@ diary_service:
#更新日记本的修改信息
update:
method: post
url: /api/diary/update_v2/17586198
url: /api/diary/update_v2/17586147
params:
data:
topic_list: ${topic_list}
......
......@@ -20,6 +20,7 @@ class TestDiaryOperation:
#
......@@ -17,15 +17,11 @@ class TestDiaryUpdate:
# if r["error"] == 0:
# assert r["message"] == param["assert"]
if r["error"] == 1:
assert r["message"] == param["assert"]
# 收藏之后取消收藏
# r1 = diary_isfavor_request().diary_cancelfavor()
# if r["error"] == 0:
# assert r["error"] == param["assert"]
assert r["message"] == param["message"]
# 校验--如果是因为发布频繁导致的错误就不用理会-如果是其他再判断
# 收藏之后取消收藏?为啥能成功?
......
......@@ -2,7 +2,7 @@ diary_operation:
#修改日记本信息case--
-
case: "修改信息"
diary_id: 17586198
diary_id: 17586147
title : "上海哈哈哈哈哈哈哈哈哈哈哈虎骨"
operation_timestamp: 1620662400
doctor_name: "也一样"
......@@ -12,7 +12,7 @@ diary_operation:
-
case: "将原来的修改内容修改回去,方便下次接着使用"
diary_id: 17586198
diary_id: 17586147
title: "测试"
operation_timestamp: 1620662401
doctor_name: "测试"
......@@ -23,6 +23,7 @@ diary_operation:
#
#diary_cancelfavor:
#-
# case: "取消收藏case"
......
......@@ -6,6 +6,13 @@ diary_update:
status: true
assert: "没有权限"
isLogin: 1
error1 : 1
message: "为避免恶意发布,请间隔30s后再发"
message7: "没有权限"
......
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