Replied message is: {
"acquisitionType": "",
"data": {
"errorCode": "000"
},
"deviceId": "",
"id": "",
"stationId": "",
"timestamp": "1623115085461",
"type": "report",
"version": "1.0"
}
碰到说这个断言有问题的
但是我看Request的样例里面是这么写的,我想要的效果就是能够判断JSON内的这个error code字段
assert reply.json()['data']['errorCode'] == "000"
AttributeError: 'coroutine' object has no attribute 'json'