Commit 23d3a642 authored by 张伟男's avatar 张伟男

AI

parent 77ea1dc9
...@@ -18,5 +18,16 @@ class TestShareV4: ...@@ -18,5 +18,16 @@ class TestShareV4:
def test_share_v4(self,param): def test_share_v4(self,param):
r = oneimage_request().share_v4(param["version"], param["face_id"]) r = oneimage_request().share_v4(param["version"], param["face_id"])
assert r["error"] == 0 assert r["error"] == 0
face_name = r["data"]["face_desc"]["face_name"]
assert face_name is not None
classification_info = r["data"]["classification_info"]
# 测颜值结果,保证五官有值
for key,value in classification_info.items():
print(key, value["name"], value["param"])
assert value["name"] is not None
assert value["param"] is not None
# 颜值报告
content = r["data"]["tractate_info"]["content"]
print(content)
assert content is not None
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