test_custom.py 549 Bytes
Newer Older
zhaihuitao committed
1 2 3 4 5 6 7 8 9 10 11
# -*- coding: utf-8 -*-
"""
@author:zhaiht
@file:  test_custom.py
@time:  2020/8/21 15:38
@desc:
"""

import unittest
import json
import requests
zhaihuitao committed
12
from config.envcfg import prod_event_url, headers, event_interface
zhaihuitao committed
13 14 15 16 17
from config.prod.params import params_custom


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

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