Ejemplo n.º 1
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)
Ejemplo n.º 2
0
 def edit_cti_configuration(user_id):
     user_dao.get(user_id)
     user_cti_profile = converter.decode(request)
     user_cti_profile_services.edit(user_cti_profile)
     return Response(status=204)