test_Integral_support_applications.py
739 Bytes
import json
from atdd.ATDDCase import ATDDCase
import unittest
# 积分策略支持的应用信息查询接口
class DefaultAllBusiness(ATDDCase):
def setUp(self):
pass
# 无需传参
def test_all_business(self):
header_json = {"Content-Type": "application/json; charset=utf-8"}
url = self.uc_host + "/a/" + self.domain + "/" + self.app + "/qy/integral/default/all-business"
data = {
"businessKey": "course_center",
"businessAct": "pass_exam_business"
}
print(url, json.dumps(data))
result = self.post(url, None, json=data, headers=header_json)
print(result.json())
print(result)
if __name__ == '__main__':
unittest.main()