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
581bd7a3
Commit
581bd7a3
authored
Jun 18, 2021
by
林颖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整合部分代码--修改错误函数名--遗漏
parent
8579ca7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test_topic_reply_vote.py
test_backend_case/topic_case/test_topic_reply_vote.py
+4
-4
No files found.
test_backend_case/topic_case/test_topic_reply_vote.py
View file @
581bd7a3
...
@@ -27,16 +27,16 @@ class TestTopicReplyVote:
...
@@ -27,16 +27,16 @@ class TestTopicReplyVote:
assert
vote
[
"message"
]
==
param
[
"assert3"
]
assert
vote
[
"message"
]
==
param
[
"assert3"
]
assert
vote
[
"error"
]
==
1
assert
vote
[
"error"
]
==
1
# 最后取消点赞,回到取消点赞的状态
# 最后取消点赞,回到取消点赞的状态
canc
le
vote
=
topicreply_vote_request
()
.
topic_reply_cancelvote
(
param
[
"id"
])
canc
el
vote
=
topicreply_vote_request
()
.
topic_reply_cancelvote
(
param
[
"id"
])
assert
canc
le
vote
[
"error"
]
==
0
assert
canc
el
vote
[
"error"
]
==
0
elif
r
[
"error"
]
==
0
:
elif
r
[
"error"
]
==
0
:
# 说明已经点赞成功只需要校验重复点赞和取消点赞即可-二次点赞无效
# 说明已经点赞成功只需要校验重复点赞和取消点赞即可-二次点赞无效
vote
=
topicreply_vote_request
()
.
topic_reply_vote
(
param
[
"id"
])
vote
=
topicreply_vote_request
()
.
topic_reply_vote
(
param
[
"id"
])
assert
vote
[
"message"
]
==
param
[
"assert3"
]
assert
vote
[
"message"
]
==
param
[
"assert3"
]
assert
vote
[
"error"
]
==
1
assert
vote
[
"error"
]
==
1
# 最后取消点赞,回到取消点赞的状态
# 最后取消点赞,回到取消点赞的状态
canc
levote
=
topicreply_vote_request
()
.
topic_reply_cancle
vote
(
param
[
"id"
])
canc
elvote
=
topicreply_vote_request
()
.
topic_reply_cancel
vote
(
param
[
"id"
])
assert
canc
le
vote
[
"error"
]
==
0
assert
canc
el
vote
[
"error"
]
==
0
#
#
...
...
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