test_custom.py 548 Bytes
Newer Older
zhaihuitao committed
1 2 3 4 5 6 7 8 9 10
# -*- coding: utf-8 -*-
"""
@author:zhaiht
@file:  test_custom.py
@time:  2020/8/21 15:38
@desc:
"""
import unittest
import json
import requests
zhaihuitao committed
11
from config.envcfg import prod_event_url, headers, event_interface
zhaihuitao committed
12 13 14 15 16
from config.prod.params import params_custom


class customTestCase(unittest.TestCase):
    def testcustom(self):
zhaihuitao committed
17
        p = requests.post(url=prod_event_url+event_interface["event"], data=json.dumps(params_custom), headers=headers, timeout=5)
zhaihuitao committed
18 19 20 21
        print("自定义" + p.text)

if __name__ == "__main__":
    unittest.main()