Commit 7adb23f3 authored by 林颖's avatar 林颖

修改被覆盖代码--回答详情页接口--遗漏点补充

parent f9790429
...@@ -18,5 +18,15 @@ class TestDetail: ...@@ -18,5 +18,15 @@ class TestDetail:
# assert r["data"]["account_phone"] == param["assert"] # assert r["data"]["account_phone"] == param["assert"]
# if r["error"] == 1: # if r["error"] == 1:
# assert r["message"] == param["assert"] # assert r["message"] == param["assert"]
assert r["data"]["is_favored"] is not None and r["data"]["is_favored"] is not ""
assert r["data"]["comment_num"] is not None and r["data"]["comment_num"] is not ""
assert r["data"]["time"] is not None and r["data"]["time"] is not ""
assert r["data"]["vote_num"] is not None and r["data"]["vote_num"] is not ""
assert r["data"]["is_following"] is not None and r["data"]["is_following"] is not ""
assert r["data"]["is_author"] is not None and r["data"]["is_author"] is not ""
assert r["data"]["is_voted"] is not None and r["data"]["is_voted"] is not ""
assert r["data"]["view_num"] is not None and r["data"]["view_num"] is not ""
assert r["data"]["answer_id"] is not None and r["data"]["answer_id"] is not ""
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