Commit 581bd7a3 authored by 林颖's avatar 林颖

整合部分代码--修改错误函数名--遗漏

parent 8579ca7c
...@@ -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
# 最后取消点赞,回到取消点赞的状态 # 最后取消点赞,回到取消点赞的状态
canclevote = topicreply_vote_request().topic_reply_cancelvote(param["id"]) cancelvote = topicreply_vote_request().topic_reply_cancelvote(param["id"])
assert canclevote["error"] == 0 assert cancelvote["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
# 最后取消点赞,回到取消点赞的状态 # 最后取消点赞,回到取消点赞的状态
canclevote = topicreply_vote_request().topic_reply_canclevote(param["id"]) cancelvote = topicreply_vote_request().topic_reply_cancelvote(param["id"])
assert canclevote["error"] == 0 assert cancelvote["error"] == 0
# #
......
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