Example #1
0
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)
Example #2
0
def step_impl(context, name, job):
    data = generate_data_file(name=name, job=job)
    context.response = post(context.base_url + "users", context.token, data)
Example #3
0
def step_impl(context, email):
    data = generate_data_file(email=email)
    context.response = post(context.base_url + "login", data=data)
Example #4
0
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']
Example #5
0
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)
Example #6
0
def step_impl(context, email, password):
    data = generate_data_file(email=email, password=password)
    context.response = post(context.base_url + "register", data=data)