def teststeps(self): STEP(1, '修改操作') r = myapi.customer_list().json() addid = r["retlist"][0]["id"] res = myapi.customer_alter(addid, 'wxl', 123456789, 'nanjing') STEP(2, '检查操作') CHECK_POINT('检查消息体', res.json() == {"ret": 0})
def teardown(self): r = myapi.customer_list().json() addid = r["retlist"][0]["id"] res = myapi.customer_alter(addid, 'wxl', 123456789, 'nanjingtoudiandaxue')
def teardown(self): r = myapi.medicines_list().json() addid = r["retlist"][0]["id"] res = myapi.customer_alter(addid,'青霉素','青霉素 国字号','099877883837')