def METHOD_NAME(requests_mock, test_runner):
    url_api = f"{n_env.api}/{t_job}"
    def post_json(request, context):
        data = request.json()
        res = sync(test_runner.post(f"/{t_job}", json=data))
        data_res = res.json()
        context.status_code = res.status_code
        return data_res
    def get_json(request, context):
        data = request.qs
        res = sync(test_runner.get(f"/{t_job}", params=data))
        data_res = res.json()
        context.status_code = res.status_code
        return data_res
    requests_mock.register_uri("GET", url_api, json=get_json, status_code=200)
    requests_mock.register_uri("POST", url_api, json=post_json, status_code=200)