purchasing_analysis.py 457 B

123456789101112131415
  1. from hytest import *
  2. from lib.wxapi import apimgr
  3. class c1:
  4. name = '采购单位分析'
  5. def teststeps(self):
  6. INFO('测试步骤')
  7. STEP(1, '第一步调用函数')
  8. res=apimgr.purchasing_analysis()
  9. r = res.json()
  10. actural=r['error_code']
  11. # INFO(length)
  12. STEP(2, '第二步设置检查点')
  13. # 设置检查点
  14. CHECK_POINT('检查采购单位分析接口是否正常', actural == 0)