示例#1
0
def when_i_create_the_following_devices(step):
    for device in step.hashes:
        _update_device_from_step_hash(device)
        world.response = device_action_restapi.create_device(device)
示例#2
0
def when_i_create_an_empty_device(step):
    world.response = device_action_restapi.create_device({})
示例#3
0
def when_i_create_a_device_using_the_device_template_id_group1(
        step, device_template_id):
    device = {'template_id': device_template_id}
    world.response = device_action_restapi.create_device(device)
示例#4
0
def when_i_create_a_device_using_the_device_template_id_group1(step, device_template_id):
    device = {
        'template_id': device_template_id
    }
    world.response = device_action_restapi.create_device(device)
示例#5
0
def when_i_create_the_following_devices(step):
    for device in step.hashes:
        _update_device_from_step_hash(device)
        world.response = device_action_restapi.create_device(device)
示例#6
0
def when_i_create_an_empty_device(step):
    world.response = device_action_restapi.create_device({})