def setUp(self): self.wogidlist = [] for i in range(1): wodata = lcl_data_workorder(SheetName, 2) res = workorder_create(wodata) wogid = json.loads(res)['data'] self.wogidlist.append(wogid)
def setUp(self): self.ordergids = [] for i in range(1): data = lcl_data_workorder('WorkOrderCreate', 2) req = workorder_create(data) ordergid = json.loads(req)['data'] self.ordergids.append(ordergid)
def setUp(self): self.wogidlist = [] for i in range(1): order_data = lcl_data_workorder(SheetName, 2) order_data['factoryLineGid'] = 'dfe56cc26cbe43ee9d3fc5054aeae603' req = workorder_create(order_data) wogid = json.loads(req)['data'] self.wogidlist.append(wogid)
def setUp(self): self.wogidlist = [] for i in range(2): data = lcl_data_workorder(SheetName, 2) data['planQty'] = i+1 res = workorder_create(data) wogid = json.loads(res)['data'] woroute_manule(wogid) self.wogidlist.append(wogid)
def test_workorder_create_true(self): """必填项正常验证""" # noinspection PyBroadException try: data = lcl_data_workorder(SheetName, 2) # print(data) req = workorder_create(data) if req == '': assert 1 == 2 else: assert 1 == 1 except Exception as e: print('接口执行错误', e) assert 1 == 2