Ejemplo n.º 1
0
def when_i_link_user_group1_with_voicemail_group2_via_restapi(
        step, fullname, voicemail):
    user = user_helper.find_user_by_name(fullname)
    number, context = func.extract_number_and_context_from_extension(voicemail)
    voicemail_id = voicemail_helper.find_voicemail_id_with_number(
        number, context)

    world.response = voicemail_link_action_restapi.link_voicemail(
        user.id, voicemail_id)
Ejemplo n.º 2
0
def when_i_link_user_group1_with_voicemail_id_group2_via_restapi(step, fullname, voicemail_id):
    user = user_helper.find_user_by_name(fullname)
    world.response = voicemail_link_action_restapi.link_voicemail(user.id, voicemail_id)
Ejemplo n.º 3
0
def when_i_link_user_group1_with_voicemail_group2_via_restapi(step, fullname, voicemail):
    user = user_helper.find_user_by_name(fullname)
    number, context = func.extract_number_and_context_from_extension(voicemail)
    voicemail_id = voicemail_helper.find_voicemail_id_with_number(number, context)

    world.response = voicemail_link_action_restapi.link_voicemail(user.id, voicemail_id)
Ejemplo n.º 4
0
def when_i_link_user_group1_with_voicemail_id_group2_via_restapi(
        step, fullname, voicemail_id):
    user = user_helper.find_user_by_name(fullname)
    world.response = voicemail_link_action_restapi.link_voicemail(
        user.id, voicemail_id)