Example #1
0
 def test_033_api_78dk_sht_store_submitstore_none(self):
     """
     提交门店信息:门店uuid为空
     :return:
     """
     res = json.loads(
         ShtAction.test_api_78dk_sht_store_submitStore(storeuuid=''))
     Assertion.verity(res['msg'], '参数有误')
     Assertion.verity(res['code'], 'S0006')
Example #2
0
 def test_032_api_78dk_sht_store_submitstore_error(self):
     """
     提交门店信息:门店uuid为空
     :return:
     """
     res = json.loads(
         ShtAction.test_api_78dk_sht_store_submitStore(
             storeuuid=MockData.wordAndNum(15)))
     Assertion.verity(res['msg'], '未知的门店')
     Assertion.verity(res['code'], 'S0006')
Example #3
0
 def test_034_api_78dk_sht_store_submitstore(self):
     """
     提交门店信息:门店uuid为空
     :return:
     """
     res = json.loads(
         ShtAction.test_api_78dk_sht_store_submitStore(
             storeuuid=store_uuid))
     # 修改数据库,将门店审核通过
     sht_query.update_pass_store_state(audit_state='pass',
                                       store_uuid=store_uuid)
     Assertion.verity(res['msg'], '成功')
     Assertion.verity(res['code'], '10000')