Commit 55639f8a authored by 刘丙寅's avatar 刘丙寅

优化代码

parent 54a877e8
......@@ -23,10 +23,10 @@ class Case(unittest.TestCase):
}
cookies = {"session_key": "nobskse0lscrgyj1iw3294h9lt0dbp7m"}
result = requests.post(url=URL, cookies=cookiejar_from_dict(cookies), data=body, verify=False)
assert_method.status_code(result)
res = result.json()
print(res)
res = res.get("data")
resl = len(res)
pprint(res)
print(resl)
assert resl == 6,"转诊策略派单数据不足6条 获取到:%s" %resl
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