Exemple #1
0
 def test_004_api_78dk_app_process_getStoreAndProduct_storeuuid_none(self):
     """
     根据门店uuid查询门店商品
     :return:
     """
     res = json.loads(AppAction.test_api_78dk_app_process_getStoreAndProduct(isdiscount='', storeuuid=''))
     Assertion.verity(res['code'], '20000')
Exemple #2
0
 def test_005_api_78dk_app_process_getStoreAndProduct_storeuuid_not_exits(self):
     """
     根据门店uuid查询门店商品
     :return:
     """
     res = json.loads(AppAction.test_api_78dk_app_process_getStoreAndProduct(isdiscount='', storeuuid=fake.ean8()))
     Assertion.verity(res['code'], 'S0003')
     Assertion.verity(res['msg'], '没有此门店信息!')
Exemple #3
0
 def test_002_api_78dk_app_process_getStoreAndProduct_false(self):
     """
     根据门店uuid查询门店商品
     :return:
     """
     res = json.loads(AppAction.test_api_78dk_app_process_getStoreAndProduct(isdiscount=False, storeuuid=storeuuid))
     Assertion.verity(res['code'], '10000')
     # Assertion.verityContain(res['data']['productList'], 'maxQuota')
     # Assertion.verityContain(res['data']['productList'], 'minQuota')
     # Assertion.verityContain(res['data']['productList'], 'name')
     # Assertion.verityContain(res['data']['productList'], 'productDetailUuid')
     Assertion.verityContain(res['data']['store'], 'businessAddress')
     Assertion.verityContain(res['data']['store'], 'storeName')
     Assertion.verityContain(res['data']['store'], 'storeUuid')