Пример #1
0
def edit_cti_configuration(userid):
    url.check_user_exists(userid)
    data = document.parse(request)
    model = formatter.dict_to_model(data, userid)
    user_cti_profile_services.edit(model)

    return make_response('', 204)
Пример #2
0
    def test_edit(self, notifier_edited, dao_edit, validate_edit):
        user_cti_profile = Mock(UserCtiProfile)

        user_cti_profile_services.edit(user_cti_profile)

        validate_edit.assert_called_once_with(user_cti_profile)
        dao_edit.assert_called_once_with(user_cti_profile)
        notifier_edited.assert_called_with(user_cti_profile)
Пример #3
0
    def test_edit(self, notifier_edited, dao_edit, validate_edit):
        user_cti_profile = Mock(UserCtiProfile)

        user_cti_profile_services.edit(user_cti_profile)

        validate_edit.assert_called_once_with(user_cti_profile)
        dao_edit.assert_called_once_with(user_cti_profile)
        notifier_edited.assert_called_with(user_cti_profile)
Пример #4
0
def edit_cti_configuration(userid):
    data = document.parse(request)
    model = formatter.dict_to_model(data, userid)
    user_cti_profile_services.edit(model)

    return make_response('', 204)