def test_post_json(self): p = req_post() p.content = b'{"name": "example", "email": "*****@*****.**"}' p.headers = Headers(content_type="application/json") flow = tutils.tflow(req=p) python_equals("data/test_flow_export/python_post_json.py", export.python_code(flow))
def test_patch(self): flow = tutils.tflow(req=req_patch()) python_equals("data/test_flow_export/python_patch.py", export.python_code(flow))
def test_post_json(self): p = req_post() p.content = '{"name": "example", "email": "*****@*****.**"}' p.headers = Headers(content_type="application/json") flow = tutils.tflow(req=p) python_equals("data/test_flow_export/python_post_json.py", export.python_code(flow))