in test.py [0:0]
def api_call(body, is_error, path): if is_error: body['id'] = str(uuid.uuid4()) + '_error' r = requests.post(f'{endpoint}/{path}', json=body) print(r.text)