Esempio n. 1
0
 def test_022_api_78dk_sht_mm_base_legal_findlegalperson(self):
     """
     查看商户法人信息
     :return:
     """
     res = json.loads(ShtAction.test_api_78dk_sht_mm_base_legal_findLegalPerson(uuid=sht_merchantUuid))
     Assertion.verity(res['code'], '10000')
Esempio n. 2
0
 def test_039_api_78dk_sht_merchant_findstate(self):
     """
     查询用户对应商户状态
     :return:
     """
     res = json.loads(ShtAction.test_api_78dk_sht_merchant_findState())
     Assertion.verity(res['code'], '10000')
Esempio n. 3
0
 def test_023_api_78dk_sht__store_modifystorebasic_email_error(self):
     """
     新增门店基本信息:信息正确
     :return:
     """
     res = json.loads(
         ShtAction.test_api_78dk_sht__store_modifyStoreBasic(
             storeprovincecode='130000',
             leasetimebegin='2019-08-08',
             storename=store_name,
             leasetimeend='2020-08-08',
             employeesnum=100,
             storeregion='新华区',
             managername=name,
             managerphone=mobile,
             storeuuid='',
             storecitycode='130100',
             storeregioncode='130105',
             area='1999',
             storeaddress='hxhhxhchchhchchcjcjj',
             storeprovince='河北省',
             idcardnumber=cardnumber,
             email=MockData.strNumber(10),
             storecity='石家庄市'))
     Assertion.verity(res['msg'], '门店名重复!')
     Assertion.verity(res['code'], 'S0006')
Esempio n. 4
0
 def test_003_api_78dk_sht__store_modifystorebasic_storename_none(self):
     """
     新增门店基本信息:门店名称为空
     :return:
     """
     res = json.loads(
         ShtAction.test_api_78dk_sht__store_modifyStoreBasic(
             storeprovincecode='130000',
             leasetimebegin='2019-08-08',
             storename='',
             leasetimeend='2020-08-08',
             employeesnum=100,
             storeregion='新华区',
             managername=name,
             managerphone=mobile,
             storeuuid='',
             storecitycode='130100',
             storeregioncode='130105',
             area='1999',
             storeaddress='123',
             storeprovince='河北省',
             idcardnumber=cardnumber,
             email=email,
             storecity='石家庄市'))
     Assertion.verity(res['msg'], '请填写门店名')
     Assertion.verity(res['code'], 'S0006')
Esempio n. 5
0
 def test_001_api_78dk_sht__store_modifystorebasic_storeaddress_none(self):
     """
     新增门店基本信息:门店地址为空
     :return:
     """
     res = json.loads(
         ShtAction.test_api_78dk_sht__store_modifyStoreBasic(
             storeprovincecode='',
             leasetimebegin='2019-08-08',
             storename='门店地址空',
             leasetimeend='2020-08-08',
             employeesnum=100,
             storeregion='',
             managername=name,
             managerphone=mobile,
             storeuuid='',
             storecitycode='',
             storeregioncode='',
             area='',
             storeaddress='',
             storeprovince='',
             idcardnumber=cardnumber,
             email=email,
             storecity=''))
     Assertion.verity(res['code'], '20000')
     Assertion.verity(res['msg'], '数据完整性错误')
Esempio n. 6
0
 def test_006_api_78dk_sht__store_modifystorebasic(self):
     """
     新增门店基本信息:信息正确
     :return:
     """
     res = json.loads(
         ShtAction.test_api_78dk_sht__store_modifyStoreBasic(
             storeprovincecode='130000',
             leasetimebegin='2019-08-08',
             storename=store_name,
             leasetimeend='2020-08-08',
             employeesnum=100,
             storeregion='新华区',
             managername=name,
             managerphone=mobile,
             storeuuid='',
             storecitycode='130100',
             storeregioncode='130105',
             area='1999',
             storeaddress='123',
             storeprovince='河北省',
             idcardnumber=cardnumber,
             email=email,
             storecity='石家庄市'))
     Assertion.verity(res['code'], '10000')
     global store_uuid
     store_uuid = res['data']['storeUuid']
     loginAction.global_dict.set(store_uuid=store_uuid)
Esempio n. 7
0
 def test_005_api_78dk_sht_store_modifystorebasic(self):
     """
     新增门店基本信息:租赁起始日期大于截止日期
     :return:
     """
     res = json.loads(
         ShtAction.test_api_78dk_sht__store_modifyStoreBasic(
             storeprovincecode='130000',
             leasetimebegin='2219-08-08',
             storename='门店名字' + MockData.words_cn(2),
             leasetimeend='2020-08-08',
             employeesnum=100,
             storeregion='新华区',
             managername=name,
             managerphone=mobile,
             storeuuid='',
             storecitycode='130100',
             storeregioncode='130105',
             area='1999',
             storeaddress='123',
             storeprovince='河北省',
             idcardnumber=cardnumber,
             email=email,
             storecity='石家庄市'))
     Assertion.verity(res['msg'], '起始时间不能大于结束时间')
     Assertion.verity(res['code'], 'S0006')
Esempio n. 8
0
 def test_040_api_78dk_sht__store_modifystoresasic(self):
     """
     修改门店基本信息:修改租赁起止日期
     :return:
     """
     res = json.loads(
         ShtAction.test_api_78dk_sht__store_modifyStoreBasic(
             storeprovincecode='130000',
             leasetimebegin='2019-08-08',
             storename=store_name,
             leasetimeend='2020-08-08',
             employeesnum=100,
             storeregion='新华区',
             managername=name,
             managerphone=mobile,
             storeuuid=store_uuid,
             storecitycode='130100',
             storeregioncode='130105',
             area='1999',
             storeaddress='hxhhxhchchhchchcjcjj',
             storeprovince='河北省',
             idcardnumber=cardnumber,
             email=email,
             storecity='石家庄市'))
     Assertion.verity(res['code'], 'S0003')
     Assertion.verity(res['msg'], '门店暂时不能修改')
Esempio n. 9
0
 def test_035_api_78dk_sht_mm_findmerchantinfo_none(self):
     """
     查看商户基础信息
     :return:
     """
     res = json.loads(ShtAction.test_api_78dk_sht_mm_findMerchantInfo(uuid=''))
     Assertion.verity(res['code'], '20000')
Esempio n. 10
0
 def test_024_api_78dk_sht_common_querytrade(self):
     """
     查询行业字典
     :return:
     """
     res = json.loads(ShtAction.test_api_78dk_sht_common_queryTrade())
     Assertion.verity(res['code'], '10000')
Esempio n. 11
0
 def test_033_api_78dk_sht_store_findlegalperson(self):
     """
     同法人
     :return:
     """
     res = json.loads(ShtAction.test_api_78dk_sht_store_findLegalPerson(merchantuuid=''))
     Assertion.verity(res['code'], '10000')
Esempio n. 12
0
 def test_029_api_78dk_sht_product_queryproducts(self):
     """
     查看商品列表
     :return:
     """
     res = json.loads(ShtAction.test_api_78dk_sht_product_queryProducts(pagesize=10, uuid='', pagenum=1))
     Assertion.verity(res['code'], '10000')
Esempio n. 13
0
 def test_032_api_78dk_sht_store_deletestoreimg(self):
     """
     删除单张图片
     :return:
     """
     res = json.loads(ShtAction.test_api_78dk_sht_store_deleteStoreImg(imageuuid='', storeuuid=''))
     Assertion.verity(res['code'], '10000')
Esempio n. 14
0
 def test_038_api_78dk_sht_mm_base_ShtActioniness_findaccountinfo(self):
     """
     查看商户帐户信息
     :return:
     """
     res = json.loads(ShtAction.test_api_78dk_sht_mm_findMerchantInfo(uuid=sht_merchantUuid))
     Assertion.verity(res['code'], '10000')
Esempio n. 15
0
 def test_028_api_78dk_sht_mm_querymerchantimg(self):
     """
     查看商户补充图片
     :return:
     """
     res = json.loads(ShtAction.test_api_78dk_sht_mm_queryMerchantImg(uuid=''))
     Assertion.verity(res['code'], '10000')
Esempio n. 16
0
 def test_026_api_78dk_sht_common_queryaccounttype(self):
     """
     查询帐户类型字典
     :return:
     """
     res = json.loads(ShtAction.test_api_78dk_sht_common_queryAccountType())
     Assertion.verity(res['code'], '10000')
Esempio n. 17
0
 def test_020_api_78dk_sht_mm_findMerchantSummary(self):
     """
     商户信息详情列表
     :return:
     """
     res = json.loads(ShtAction.test_api_78dk_sht_mm_findMerchantSummary(uuid=sht_merchantUuid))
     Assertion.verity(res['code'], '10000')
Esempio n. 18
0
 def test_019_api_78dk_sht_mm_findMerchantSummary_none(self):
     """
     商户信息详情列表
     :return:
     """
     res = json.loads(ShtAction.test_api_78dk_sht_mm_findMerchantSummary(uuid=''))
     Assertion.verity(res['code'], '40000')
Esempio n. 19
0
 def test_034_api_78dk_sht_common_queryprovincecityregions(self):
     """
     查询省市区
     :return:
     """
     res = json.loads(ShtAction.test_api_78dk_sht_common_queryProvinceCityRegions())
     Assertion.verity(res['code'], '10000')
Esempio n. 20
0
 def test_027_api_78dk_sht_mm_deletemerchantimg(self):
     """
     删除一张图片
     :return:
     """
     res = json.loads(ShtAction.test_api_78dk_sht_mm_deleteMerchantImg(uuid='', imageuuid=''))
     Assertion.verity(res['code'], '10000')
Esempio n. 21
0
 def test_031_api_78dk_sht_store_savestoreimg(self):
     """
     保存单张图片
     :return:
     """
     res = json.loads(ShtAction.test_api_78dk_sht_store_saveStoreImg(key='', storeuuid=''))
     Assertion.verity(res['code'], '20000')
     Assertion.verity(res['msg'], '未知的图片分类')
Esempio n. 22
0
 def test_030_api_78dk_sht_bm_findbilldetail(self):
     """
     查看订单详情
     :return:
     """
     res = json.loads(ShtAction.test_api_78dk_sht_bm_findBillDetail(orderuuid=''))
     Assertion.verity(res['code'], '20000')
     Assertion.verity(res['msg'], '系统数据对应异常')
Esempio n. 23
0
 def test_008_api_78dk_sht_mm_findMerchantSummary(self):
     """
     商户信息详情列表
     :return:
     """
     sht_query.update_wx_merchart_null(sht_merchantUuid)
     res = json.loads(ShtAction.test_api_78dk_sht_mm_findMerchantSummary(uuid=sht_merchantUuid))
     Assertion.verity(res['code'], '10000')
Esempio n. 24
0
    def test_025_api_78dk_sht_mm_savemerchantimg(self):
        """
        保存一张图片
        :return:
        """

        res = json.loads(ShtAction.test_api_78dk_sht_mm_saveMerchantImg(uuid='', key=''))
        Assertion.verity(res['code'], '20000')
Esempio n. 25
0
 def test_061_api_78dk_sht_store_querystorelist(self):
     """
     查询门店列表
     :return:
     """
     res = json.loads(
         ShtAction.test_api_78dk_sht_store_queryStoreList(store_uuid))
     Assertion.verity(res['code'], '10000')
Esempio n. 26
0
 def test_051_api_78dk_sht_mm_submitmerchant(self):
     """
     提交审核
     根据商户名字查询出商户的uuid
     :return:
     """
     res = json.loads(ShtAction.test_api_78dk_sht_mm_submitMerchant(uuid=sht_merchantUuid))
     Assertion.verity(res['code'], '10000')
Esempio n. 27
0
 def test_057_api_78dk_sht_store_findstorebasic(self):
     """
     查询门店基本信息
     :return:
     """
     res = json.loads(
         ShtAction.test_api_78dk_sht_store_findStoreBasic(store_uuid))
     Assertion.verity(res['code'], '10000')
Esempio n. 28
0
 def test_043_api_78dk_sht_mm_base_store_querystores(self):
     """
     查看门店
     :return:
     """
     res = json.loads(
         ShtAction.test_api_78dk_sht_bm_queryStores(store_uuid))
     Assertion.verity(res['code'], '10000')
Esempio n. 29
0
 def test_048_api_78dk_sht_qrcode_showqrs(self):
     """
     查询二维码
     :return:
     """
     res = json.loads(
         ShtAction.test_api_78dk_sht_qrCode_showQRs(store_uuid))
     Assertion.verity(res['code'], 'S0006')
Esempio n. 30
0
 def test_059_api_78dk_sht_store_querystorepics(self):
     """
     查询门店证照信息
     :return:
     """
     res = json.loads(
         ShtAction.test_api_78dk_sht_store_queryStorePics(store_uuid))
     Assertion.verity(res['code'], '10000')