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
878e2831
Commit
878e2831
authored
Jun 24, 2021
by
林颖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改创建权限问题
parent
56ccd82f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
12 deletions
+18
-12
diary_request.py
all_backend_api/diary_request.py
+1
-1
diary_request.yaml
all_backend_api/diary_request.yaml
+3
-2
test_operation.py
test_backend_case/diary_case/test_operation.py
+1
-0
test_update.py
test_backend_case/diary_case/test_update.py
+3
-7
diary_operation.yaml
test_backend_data/diary_data/diary_operation.yaml
+3
-2
diary_update.yaml
test_backend_data/diary_data/diary_update.yaml
+7
-0
No files found.
all_backend_api/diary_request.py
View file @
878e2831
...
...
@@ -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
...
...
all_backend_api/diary_request.yaml
View file @
878e2831
...
...
@@ -33,10 +33,11 @@ operation:
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#查看日记修改信息页面
additional_info
:
method
:
get
url
:
/api/diary/operation/175861
98
/
url
:
/api/diary/operation/175861
47
/
params
:
data
:
{}
json
:
{}
...
...
@@ -71,7 +72,7 @@ diary_service:
#更新日记本的修改信息
update
:
method
:
post
url
:
/api/diary/update_v2/175861
98
url
:
/api/diary/update_v2/175861
47
params
:
data
:
topic_list
:
${topic_list}
...
...
test_backend_case/diary_case/test_operation.py
View file @
878e2831
...
...
@@ -20,6 +20,7 @@ class TestDiaryOperation:
#
test_backend_case/diary_case/test_update.py
View file @
878e2831
...
...
@@ -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"
]
# 校验--如果是因为发布频繁导致的错误就不用理会-如果是其他再判断
# 收藏之后取消收藏?为啥能成功?
...
...
test_backend_data/diary_data/diary_operation.yaml
View file @
878e2831
...
...
@@ -2,7 +2,7 @@ diary_operation:
#修改日记本信息case--
-
case
:
"
修改信息"
diary_id
:
175861
98
diary_id
:
175861
47
title
:
"
上海哈哈哈哈哈哈哈哈哈哈哈虎骨"
operation_timestamp
:
1620662400
doctor_name
:
"
也一样"
...
...
@@ -12,7 +12,7 @@ diary_operation:
-
case
:
"
将原来的修改内容修改回去,方便下次接着使用"
diary_id
:
175861
98
diary_id
:
175861
47
title
:
"
测试"
operation_timestamp
:
1620662401
doctor_name
:
"
测试"
...
...
@@ -23,6 +23,7 @@ diary_operation:
#
#diary_cancelfavor:
#-
# case: "取消收藏case"
...
...
test_backend_data/diary_data/diary_update.yaml
View file @
878e2831
...
...
@@ -6,6 +6,13 @@ diary_update:
status
:
true
assert
:
"
没有权限"
isLogin
:
1
error1
:
1
message
:
"
为避免恶意发布,请间隔30s后再发"
message7
:
"
没有权限"
...
...
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