def _create_inventory_group(self):
     inventory_group_data = self._get_inventory_group_data()
     self.logger.info('inventory_group_data: {}'.format(inventory_group_data))
     inventory_group_info = create_inventory_group(inventory_group_data)
     self.logger.info('inventory_group_info: {}'.format(inventory_group_info))
     assert_true(inventory_group_info)
     self.inventory_groups_ids.append(inventory_group_info.get('id'))
     return inventory_group_info
Exemplo n.º 2
0
def step_impl(context):
    context.given = 1
    context.inventorygroup_data = create_inventory_group_data()
    context.inventorygroup_info = app_helpers.create_inventory_group(context.inventorygroup_data)
    save_item_id(context.inventorygroup_info, 'inventory_group', context)