def step_impl(context, employee_id, name, job): data = generate_data_file(name=name, job=job) context.response = put(context.base_url + "users/" + employee_id, token=context.token, data=data)
def step_impl(context, name, job): data = generate_data_file(name=name, job=job) context.response = post(context.base_url + "users", context.token, data)
def step_impl(context, email): data = generate_data_file(email=email) context.response = post(context.base_url + "login", data=data)
def step_impl(context, email, password): data = generate_data_file(email=email, password=password) context.response = post(context.base_url + "login", data=data) context.token = context.response.json()['token']
def step_impl(context): for row in context.table: data = generate_data_file(email=row['email'], password=row['password']) context.response = post(context.base_url + "register", data=data)
def step_impl(context, email, password): data = generate_data_file(email=email, password=password) context.response = post(context.base_url + "register", data=data)