test_Budiness_strategy_list.py
695 Bytes
import unittest
from atdd.PcApiTest import PcApiTest
# 企业业务积分策略列表接口
class StrategyList(PcApiTest):
def setUp(self):
self.do_login(self.host, self.mobile, self.psw, self.domain)
def test_list_allparameter(self):
interfaceUrl = "/Integral/Apicp/Integral/BusinessList"
data = {
"businessKey": "news_center",
"businessAct": "read"
}
result = self.PcApiTest(interfaceUrl, data)
print(self.host + "/" + self.domain + interfaceUrl)
self.assertEqual("ok", result["errmsg"], msg=result["errmsg"])
print(result)
return result
if __name__ == '__main__':
unittest.main()